void Start() { MapStateFunctions(); keybinds = GameObject.FindGameObjectWithTag("KeyBinds").GetComponent <KeybindScript>(); FindPlayerParts(); ChangeState(HookshotState.READY); playingHookAnim = false; }
void Start() { GroundSensor.GroundSensorChange += Grounded; keybinds = GameObject.FindGameObjectWithTag("KeyBinds").GetComponent <KeybindScript>(); body = GetComponent <Rigidbody2D>(); FindWallSensors(); touchingRight = false; touchingLeft = false; isRunning = false; readyForJump = true; soundPlayer = GameObject.Find("soundEffects").GetComponent <SoundEffectHelper>(); }
void Start() { MapStateFunctions(); keybinds = GameObject.FindGameObjectWithTag("KeyBinds").GetComponent<KeybindScript>(); FindPlayerParts(); ChangeState(HookshotState.READY); playingHookAnim = false; }
void Start() { GroundSensor.GroundSensorChange += Grounded; keybinds = GameObject.FindGameObjectWithTag("KeyBinds").GetComponent<KeybindScript>(); body = GetComponent<Rigidbody2D>(); FindWallSensors(); touchingRight = false; touchingLeft = false; isRunning = false; readyForJump = true; soundPlayer = GameObject.Find("soundEffects").GetComponent<SoundEffectHelper>(); }