/* ========================================================================================================== * UNITY METHODS * ========================================================================================================== */ void Awake() { goObjectivesCard = GameObject.Find("ObjectivesCardControl"); // DEBUG if (goObjectivesCard == null) { // DEBUG Debug.LogError(this.transform + " Could not find any object named ObjectivesCardControl."); } objectivesCardScript = goObjectivesCard.GetComponent <ObjectivesCard>(); }
/* ========================================================================================================== * UNITY METHODS * ========================================================================================================== */ void Awake() { goObjectivesCard = GameObject.Find("ObjectivesCardControl"); // DEBUG if(goObjectivesCard == null) { // DEBUG Debug.LogError(this.transform + " Could not find any object named ObjectivesCardControl."); } objectivesCardScript = goObjectivesCard.GetComponent<ObjectivesCard>(); }
/// <summary> /// The objective card will register itself with us. That will be useful to when the level ends and we /// must force the card to be shown /// </summary> public void RegisterObjectiveCard(Transform tr, ObjectivesCard cardScript) { trObjectivesCard = tr; objectivesCardScript = cardScript; }