Пример #1
0
    public void Fire(Transform target)
    {
        OnRelease ();

        if (projectile == null) return;
        projectile.transform.forward = transform.forward;

        projectile.target = getRawTarget ? target : target.GetTarget();
        projectile.Fire ();
        projectile = null;
    }
Пример #2
0
 public void Next()
 {
     target = targetList.NextOrDefault (t => t == target);
     actualTarget = target.GetTarget ();
 }