void Awake() { attacherDriverStack = new DriverStack <IAttacherDriver>(); detacherDriverStack = new DriverStack <IDetacherDriver>(); offenceDriverStack = new DriverStack <IOffenceDriver>(); defenceDriverStack = new DriverStack <IDefenceDriver>(); }
private void OnGameBuilt(object sender) { game = GameObject.FindGameObjectWithTag(Tags.Game).GetComponent <Game>(); if (game.ActivePlayer == gameObject) { GetComponent <Tail>().OnEventOrbAttached += OnOrbAttached; engineDriverStack = GetComponent <MovementController>().GetEngineDriverStack(); } game.EventEnd += OnEventEnd; }
void Awake() { engineDriverStack = new DriverStack <IEngineDriver>(); wheelDriverStack = new DriverStack <IWheelDriver>(); }