Beispiel #1
0
    void SetUpPlayerStats()
    {
        HealthBehavior playerHealth = GameObject.FindObjectOfType <PlayerBehaviour>().GetComponent <HealthBehavior>();

        playerHealth.SetMaxHealth(10);
        playerHealth.SetDefenseValue(0);
        playerHealth.GetComponent <OffenseBehavior>().SetAttackPower(1);
    }