public void SetGuardTarget(Aircraft guardTarget) { GuardTarget = guardTarget; guardTargetTrans = guardTarget?.transform; }
public virtual void ObjectPoolInit(Vector3 position, Quaternion rotation, Aircraft target, Aircraft guardTarget, string camp = null) { trans.position = position; trans.rotation = rotation; Camp = camp; SetTarget(target); SetGuardTarget(guardTarget); }
public void SetTarget(Aircraft target) { Target = target; targetTrans = target?.transform; }