Exemplo n.º 1
0
    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");
        }
    }
Exemplo n.º 2
0
    public void CreateGuide(string text, Sprite sprite, AnimatorOverrideController controller)
    {
        CreateGuide(sprite, controller);

        _guidance.SetInstruction(text);
    }
Exemplo n.º 3
0
 // 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");
 }