void Start() { continuousControl = FindObjectOfType <ContinuousControl>(); if (!continuousControl.isActiveAndEnabled) { this.enabled = false; //need this for if the movement type is not Continuous Control } }
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>(); }