public void MeClicked(RaycastHit hit) { var rtsCam = CameraGetter.GetCameraObject().GetComponent <RTS_Camera>(); rtsCam.targetFollow = this.transform; Debug.Log($"{gameObject.name} selected"); }
public void OnMeDeselected() { var rtsCam = CameraGetter.GetCameraObject().GetComponent <RTS_Camera>(); rtsCam.targetFollow = default; Debug.Log($"{gameObject.name} deselected"); }