private void Start() { _ui_objectiveText = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveText>(); if (_ui_objectiveText == null) { Debug.LogError("WARNING: UI_ObjectiveText reference missing from UpdateObjective"); } }
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"); } }
// 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"); } _playerRef = GlobalObjectManager.Instance.player; if (_playerRef == null) { Debug.LogError("WARNING: Player reference missing from TouchObjective Component"); } _ui_objectiveText = GlobalObjectManager.Instance.HUDCanvas.GetComponentInChildren <UI_ObjectiveText>(); if (_ui_objectiveText == null) { Debug.LogError("WARNING: UI_ObjectiveText reference missing from UpdateObjective"); } }