Ejemplo n.º 1
0
 private void Awake()
 {
     if (_instance != null && _instance != this)
     {
         Destroy(this.gameObject);
     }
     else
     {
         _instance = this;
     }
 }
Ejemplo n.º 2
0
 private void Start()
 {
     touchSystem             = TouchSystem.Instance;
     cam                     = GetComponent <Camera>();
     touchSystem.startTouch += StartPan;
 }