Darkfafi / Mythe_Orion_Game

Game for mobile school project Mythe Orion
1 stars 0 forks source link

Flexibiliteit toevoegen #13

Open erwinhenraat opened 9 years ago

erwinhenraat commented 9 years ago
if (other.gameObject.GetComponent<Creature>() != null && other.gameObject.tag != "Player"){
            other.gameObject.GetComponent<Creature>().GetDamage(_damage);
            Destroy(this.gameObject);
        } 

Bestand: https://github.com/Darkfafi/Mythe_Orion_Game/blob/master/Assets/_Scripts/Items/Weapons/Projectiles/Projectile.cs

Wellicht wil je ook nog enemies maken die projectielen kunnen schieten.

Deze zal nu niet op de speler werken. Maak de waarde waarmee je de tag checkt variabel.

Darkfafi commented 9 years ago

hmm ja dan moet ik checken of degene die schiet niet degene is die geraakt word. Dank u wel!