Example #1
0
    private CheckpointBoundary FindObjectIdCheckpointBoundary()
    {
        GameObject foundCheckPointBoundaryGameObject = ObjectId.Find(checkPointBoundaryId);

        if (foundCheckPointBoundaryGameObject == null)
        {
            return(null);
        }

        CheckpointBoundary checkpointBoundary = foundCheckPointBoundaryGameObject.GetComponent <CheckpointBoundary>();

        return(checkpointBoundary);
    }
Example #2
0
    public void LookAtPlayer(string a_targetNPC_id)
    {
        NPC npc = ObjectId.Find(a_targetNPC_id).GetComponent <NPC>();

        npc.LookAtPlayer(PlayerController.GetPosition);
    }