// Code that runs on entering the state. public override void OnEnter() { atm = Owner.GetComponent<ATM>(); atm.screenInfo = "You Got a Ticket!\nThank you."; atm.Display(); currentTime = delayTime; }
// Code that runs on entering the state. public override void OnEnter() { atm = Owner.GetComponent<ATM>(); // Next AD to show atm.NextAD(); atm.Display(); Finish(); }