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