Beispiel #1
0
    private void OnParticleCollision(GameObject other)
    {
        WorldObject hitWO = other.GetComponent <WorldObject> ();

        if (hitWO)
        {
            hitWO.Attack(thisRangedWO);
        }
    }
Beispiel #2
0
 protected virtual void HitWorldObject(WorldObject worldObject)
 {
     worldObject.Attack(shooter);
 }