Пример #1
0
 void YourOn()
 {
     if (Sub_CameraSwitcher == null)
     {
         Sub_CameraSwitcher     = GameObject.FindObjectOfType <ModeSwitcher>();
         Sub_WalkingCamera      = Sub_CameraSwitcher.Walking_Camera;
         Sub_Comp_WalkingCamera = GameObject.FindObjectOfType <WalkingCamera>();
     }
 }
Пример #2
0
 void OnTapButton(TapGesture gesture)
 {
     if (gesture.Selection == this.gameObject)
     {
         ShowPositiveButtonFeedback();
         if (Sub_WalkingCamera == null)
         {
             Sub_Comp_WalkingCamera = GameObject.FindObjectOfType <WalkingCamera>();
         }
         Sub_Comp_WalkingCamera.ResetTransform();
         Debug.Log("Walking Camera Resetted");
     }
 }