FM/Assets/TouchScript/Examples/Cube/Scripts/Init.cs

22 lines
517 B
C#
Raw Normal View History

2025-06-04 22:49:37 +08:00
/*
* @author Valentin Simonov / http://va.lent.in/
*/
using UnityEngine;
using TouchScript.Layers;
namespace TouchScript.Examples.Cube
2025-06-04 22:49:37 +08:00
{
/// <exclude />
public class Init : MonoBehaviour
2025-06-04 22:49:37 +08:00
{
void Start()
{
2025-06-04 22:49:37 +08:00
var d = GetComponent<LayerDelegate>();
var go = GameObject.Find("Scene Camera");
2025-06-04 22:49:37 +08:00
go.GetComponent<TouchLayer>().Delegate = d;
go = GameObject.Find("Camera");
go.GetComponent<TouchLayer>().Delegate = d;
2025-06-04 22:49:37 +08:00
}
}
}