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