示例#1
0
    void SetHUDWaypoint(Transform newWaypoint)
    {
        GoalPointer goalPointer = m_hud.GetComponentInChildren <GoalPointer>();

        if (goalPointer)
        {
            goalPointer.m_target = newWaypoint;
        }
    }
示例#2
0
    public void SetActiveCamera(Camera activeCamera)
    {
        GoalPointer goalPointer = GetComponentInChildren <GoalPointer>();

        if (goalPointer == null)
        {
            Debug.Log("Goal pointer is not supposed to be null");
            return;
        }
        goalPointer.ActiveCamera = activeCamera.transform;
    }