void Awake() { playerHeight = this.transform.position.y; inputs = new InputsMaster(); inputs.Player.SetCallbacks(this); rb = GetComponent <Rigidbody>(); col = GetComponent <CapsuleCollider>(); WalkSpeed = WalkSpeed * 25; RunSpeed = RunSpeed * 25; }
private void Awake() { inputs = new InputsMaster(); inputs.Pause.SetCallbacks(this); Time.timeScale = 1; ispaused = false; PauseCanvas.gameObject.SetActive(true); Setting.SetActive(false); comande.SetActive(false); Main.SetActive(true); IsAwaking = true; Load(); StartCoroutine(cooldown()); }
public PlayerActions(InputsMaster wrapper) { m_Wrapper = wrapper; }
public PauseActions(InputsMaster wrapper) { m_Wrapper = wrapper; }
private void Awake() { inputs = new InputsMaster(); inputs.Player.SetCallbacks(this); }