예제 #1
0
 public void ClearTarget()
 {
     target = null;
 }
예제 #2
0
 public void CmdSetTarget(GameObject targetGameObject)
 {
     if (!targetGameObject.TryGetComponent<Targetable>(out Targetable newTarget)) return;
     target = newTarget;
 }