void Awake() { touchDispatcher = GameObject.Find("Touch Dispatcher").GetComponent <TouchDispatcher>(); entityUIConnection = GetComponent <EntityUIConnection>(); entityUIConnection.reloadProgressBar.Hide(); shooter = GetComponentInChildren <Shooter>(); shooter.shield.TurnOff(0); }
public static TouchDispatcher GetSharedTouchDispatcher() { if (instance == null) { instance = (new GameObject()).AddComponent <TouchDispatcher>(); instance.name = "TouchDispatcher"; } return(instance); }
protected void GetSharedTouchDispatcher() { //find with no parents sharedTouchDispatcher = TouchDispatcher.GetSharedTouchDispatcher(); }