PlayerHealth.Die C# (CSharp) Method

Die() public method

public Die ( ) : void
return void
    public void Die()
    {
        _health = 0;
    }

Usage Example

Example #1
0
 private void DeveloperCommands()
 {
     if (Input.GetKey(KeyCode.R))
     {
         playerHealth.Die();
     }
 }
All Usage Examples Of PlayerHealth::Die