Exemplo n.º 1
0
    public void Execute(GameObject obj)
    {
        ShootBehaviour script = obj.GetComponent <ShootBehaviour> ();

        if (script)
        {
            script.Shoot();
        }
    }
Exemplo n.º 2
0
 protected virtual void Shoot()
 {
     shootBehaviour.Shoot(target);
     canShoot = false;
     EnemyMoveSpt.GiveDamage(target, Damage);
 }