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