void Start() { asc = GetComponent <AgeStateController>(); animator = asc.FetchAnimatorController(); currentState = State.isMoving; rb = GetComponent <Rigidbody2D>(); }
void Start() { gameTime = gameTimeAtStart; asc = FindObjectOfType <AgeStateController>(); }
void Awake() { rb = GetComponent <Rigidbody2D>(); animator = GetComponent <Animator>(); asc = FindObjectOfType <AgeStateController>(); }