void Start() { PantsChargeUIManager = GameObject.Find("Pants Charge Manager").GetComponent <PantsChargeUIManager>(); OnPlayerStateChanged += Player_OnPlayerStateChanged; _CurentMaxMoveSpeed = MoveSpeed; }
void Start() { _Controller = GetComponent <Controller2D>(); _PlayerAudioSource = GetComponent <AudioSource>(); _PlayerAudioSource.clip = JumpClip; PantsChargeUIManager = GameObject.Find("Pants Charge Manager").GetComponent <PantsChargeUIManager>(); OnPlayerStateChanged += Player_OnPlayerStateChanged; }