Beispiel #1
0
 private void Start()
 {
     _ui_objectiveIcon = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveIcon>();
     if (_ui_objectiveIcon == null)
     {
         Debug.LogError("WARNING: UI_ObjectiveIcon reference missing from UpdateObjective.");
     }
 }
Beispiel #2
0
    public QuestObjective()
    {
        _ui_objectiveText = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveText>();
        if (_ui_objectiveText == null)
        {
            Debug.LogError("WARNING: UI_ObjectiveText reference missing from QuestObjective");
        }

        _ui_objectiveIcon = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveIcon>();
        if (_ui_objectiveIcon == null)
        {
            Debug.LogError("WARNING: UI_ObjectiveIcon reference missing from QuestObjective");
        }
    }
Beispiel #3
0
    // Use this for initialization
    void Start()
    {
        SettingsComponent.variableUpdatesEvent += UpdateVariables;
        UpdateVariables();
        _jump         = new Jump();
        _interact     = new Interact();
        _hold         = new Hold();
        _wallMovement = new WallMovement();

        _ui_objectiveText = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveText>();
        if (_ui_objectiveText == null)
        {
            Debug.LogError("WARNING: UI_ObjectiveText  reference missing from PlayerControls");
        }

        _ui_objectiveIcon = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveIcon>();
        if (_ui_objectiveIcon == null)
        {
            Debug.LogError("WARNING: UI_ObjectiveIcon reference missing from PlayerControls");
        }
    }
    private void Start()
    {
        _collider = GetComponent <Collider>();
        if (_collider == null)
        {
            Debug.LogError("WARNING: TouchObjective Component missing Collider");
        }
        if (_collider != null && !_collider.isTrigger)
        {
            Debug.Log("WARNING: TouchObjective Component Collider is not a trigger");
        }

        _ui_objectiveIcon = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveIcon>();
        if (_ui_objectiveIcon == null)
        {
            Debug.LogError("WARNING: UI_ObjectiveIcon reference missing from TouchObjective Component.");
        }

        _playerRef = GlobalObjectManager.Instance.player;
        if (_playerRef == null)
        {
            Debug.LogError("WARNING: Player reference missing from TouchObjective Component");
        }
    }