Esempio n. 1
0
    void Start()
    {
        playerAttributes = GetComponent <_playerAttributes>();
        playerMovement   = GetComponent <_playerMovement>();
        cooldown         = new _cooldown();

        shootingCooldown = new Timer(playerAttributes.shootCooldown, false);
    }
Esempio n. 2
0
 private void Start()
 {
     playerAttributes = GameObject.FindGameObjectWithTag("Player").GetComponent <_playerAttributes>();
 }