Beispiel #1
0
    private void MissSnowball(TargetProjectile projectile)
    {
        //print("Missed");

        Snowball snowball = projectile.GetComponent <Snowball>();

        snowballs.Remove(snowball);
        Destroy(projectile.gameObject);
    }
Beispiel #2
0
    private void HitSnowball(TargetProjectile projectile, GameObject hitObj)
    {
        //print("Hit");

        Snowball snowball = projectile.GetComponent <Snowball>();

        snowballs.Remove(snowball);
        Destroy(snowball.gameObject);
    }