Exemple #1
0
 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;
 }
Exemple #2
0
    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());
    }
Exemple #3
0
 public PlayerActions(InputsMaster wrapper)
 {
     m_Wrapper = wrapper;
 }
Exemple #4
0
 public PauseActions(InputsMaster wrapper)
 {
     m_Wrapper = wrapper;
 }
 private void Awake()
 {
     inputs = new InputsMaster();
     inputs.Player.SetCallbacks(this);
 }