public void TimerHandler() { if (Cooking && !TimerOpen) { // Close step by step guidance DestroyAllGuidance(); // Create timer menu var timerMenu = Instantiate(TimerMenuPrefab); TimerOpen = true; // Timer guidance _guidance = Instantiate(GuidancePrefab).GetComponent <Guidance>(); _guidance.transform.parent = Camera.main.transform; _guidance.SetInstruction("Click on the + numbers to increase the time in minutes"); } }
public void CreateGuide(string text, Sprite sprite, AnimatorOverrideController controller) { CreateGuide(sprite, controller); _guidance.SetInstruction(text); }
// Use this for initialization void Start() { Guide = Instantiate(GuidePrefab).GetComponent <Guidance>(); Guide.transform.parent = Camera.main.transform; Guide.SetInstruction("Click on the arrows or say next/previous to navigate over the instructions"); }