private void Start() { testObject = GetComponentInChildren <TestObject>(); tutorialArea = GetComponentInParent <TutorialArea>(); pointer = FindObjectOfType <TutorialPointer>(); InitButtons(); }
public void MoveArrow() { TutorialArea nextArea = playerCurrentlyInArea.NextArea; if (nextArea != null) { ArrowVisible(true); transform.position = nextArea.transform.position; arrowInArea = nextArea; Debug.Log("Moving arrow to area: " + nextArea.AreaName); } }
// please write what it does public static void ActivateQuestCompletionAction(string id) { switch (id) { case "Slay the Gators": { UIEventHandler.MoneyAdded(100); PlayerLevel.ExpAdded(50); TutorialArea.questComplete = true; TutorialArea.OpenHometownWarp(); break; } // finsh tutorial quest to open up hometown portal } }
public void PlayerInArea(TutorialArea area) { Debug.Log("Report from area: " + area); playerCurrentlyInArea = area; MoveArrow(); }
protected virtual void Awake() { tutorialArea = GetComponentInParent <TutorialArea>(); }