Example #1
0
 // Update is called once per frame
 void Update()
 {
     if (!ApplicationControls.isGamePaused())
     {
         GetMovement();
         GetAttack();
     }
 }
Example #2
0
    void FixedUpdate()
    {
        if (!ApplicationControls.isGamePaused())
        {
            UpdateRapidTimer();
            GetRapidFire();

            if (playerHealth <= 0)
            {
                Destroy(this.gameObject);
                audioScript.blueWinSfx(transform.position);
                ApplicationControls.GameOver(2);
            }
        }
    }
 void Awake()
 {
     instance = this;
 }
	void Awake() {
		instance = this;
	}