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