void Start() { playerState = PlayerState.OnGround; rb = GetComponent <Rigidbody2D>(); gameController = gameControllerTransform.GetComponent <GameController>(); }
void Start() { playerState = PlayerState.OnGround; rb = GetComponent <Rigidbody2D>(); gameController = gameControllerTransform.GetComponent <GameController>(); }