Esempio n. 1
0
    private void AttackObject(GameObject victim)
    {
        HealthBehaviour victimHealth = victim.GetComponent <HealthBehaviour>();

        victimHealth.TakeHit(0.5f);

        /*
         * victimHealth = victim.GetComponent<HealthScript>();
         * if(victimHealth != null){
         *      victimHealth.DoDamage(Damage stuff);
         * }
         *
         */
    }