Esempio n. 1
0
    void Start()
    {
        MySkyInputEvent inputEvent = gameObject.AddComponent <MySkyInputEvent>();

        MySkyInputEvent.instance.SetCamera(this.gameObject.GetComponent <Camera>());
        MySkyInputEvent.instance.SetUICamera(this.gameObject.GetComponent <Camera>());

        Messenger.AddListener <GameObject, MySkyInputEvent.DragState, Vector2, Vector2, Vector3>(MySkyInputEvent.EventDrag, EventDrag);
    }
Esempio n. 2
0
 void Awake()
 {
     instance = this;
 }