Beispiel #1
0
 public virtual void Start()
 {
     godControl     = GameObject.Find("GodPlayer").GetComponent <GodControl>();
     godHUD         = GameObject.Find("GodCanvas");
     allTogglePlay  = godHUD.GetComponentInChildren <Toggle>();
     maxRecordTime  = recordTime;
     recordingState = RecordingState.NOT_RECORDING;
     startEuler     = transform.eulerAngles;
     startPos       = transform.position;
 }
Beispiel #2
0
 public void AllTogglePlay(GodControl godControl)
 {
     godControl.midIsPlaying    = !godControl.midIsPlaying;
     midIsPlaying               = godControl.midIsPlaying;
     godControl.rightIsPlaying  = !godControl.rightIsPlaying;
     rightIsPlaying             = godControl.rightIsPlaying;
     godControl.leftIsPlaying   = !godControl.leftIsPlaying;
     leftIsPlaying              = godControl.leftIsPlaying;
     GameStateControl.gameState = GameStateControl.GameState.LIVE;
     GameObject[] enemies = GameObject.FindGameObjectsWithTag("Enemies");
     foreach (GameObject enemy in enemies)
     {
         enemy.GetComponent <EnemyActionRecorder>().ResetEnemyPosAndRot();
         // enemy.GetComponent<EnemyActionRecorder>().recordingState = EnemyActionRecorder.RecordingState.PLAYBACK;
     }
 }
Beispiel #3
0
 public void RightTogglePlay(GodControl godControl)
 {
     godControl.rightIsPlaying = !godControl.rightIsPlaying;
     rightIsPlaying            = godControl.rightIsPlaying;
 }
Beispiel #4
0
 public void LeftTogglePlay(GodControl godControl)
 {
     godControl.leftIsPlaying = !godControl.leftIsPlaying;
     leftIsPlaying            = godControl.leftIsPlaying;
 }
Beispiel #5
0
 public void MidTogglePlay(GodControl godControl)
 {
     godControl.midIsPlaying = !godControl.midIsPlaying;
     midIsPlaying            = godControl.midIsPlaying;
 }