private CheckpointBoundary FindObjectIdCheckpointBoundary() { GameObject foundCheckPointBoundaryGameObject = ObjectId.Find(checkPointBoundaryId); if (foundCheckPointBoundaryGameObject == null) { return(null); } CheckpointBoundary checkpointBoundary = foundCheckPointBoundaryGameObject.GetComponent <CheckpointBoundary>(); return(checkpointBoundary); }
public void LookAtPlayer(string a_targetNPC_id) { NPC npc = ObjectId.Find(a_targetNPC_id).GetComponent <NPC>(); npc.LookAtPlayer(PlayerController.GetPosition); }