Example #1
0
 void Awake()
 {
     attacherDriverStack = new DriverStack <IAttacherDriver>();
     detacherDriverStack = new DriverStack <IDetacherDriver>();
     offenceDriverStack  = new DriverStack <IOffenceDriver>();
     defenceDriverStack  = new DriverStack <IDefenceDriver>();
 }
Example #2
0
    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;
    }
Example #3
0
 void Awake()
 {
     engineDriverStack = new DriverStack <IEngineDriver>();
     wheelDriverStack  = new DriverStack <IWheelDriver>();
 }