Beispiel #1
0
 void Start()
 {
     continuousControl = FindObjectOfType <ContinuousControl>();
     if (!continuousControl.isActiveAndEnabled)
     {
         this.enabled = false; //need this for if the movement type is not Continuous Control
     }
 }
Beispiel #2
0
 void Awake()
 {
     discreteQueued = GetComponent<QueuedControl>();
     continousControl = GetComponent<ContinuousControl>();
     hexesControl = GetComponent<HexToHexControl>();
     discreteControl = GetComponent<DiscreteMovement>();
     hexQueuedControl = GetComponent<HexQueuedCntrl>();
     turnControl = GetComponent<TurnBasedControl>();
     simulatedControl = GetComponent<SimulatedControl>();
     replayControl = GetComponent<ReplayControl>();
 }