Пример #1
0
    private void CurrentInstructionUpdate()
    {
        InstructionStep step = currentInstructionModel.GetInstructionStep(currentStep);

        Debug.Log("STEP " + step.Name + ": " + step.Title);
        OnInstructionUpdate.Invoke(step);
    }
    private void CurrentInstructionUpdate()
    {
        InstructionStep step = currentInstructionModel.GetInstructionStep(currentStep);

        stepText.text  = "Step: " + currentStep;
        titleText.text = step.Title;
        bodyText.text  = step.BodyText;
    }
Пример #3
0
    private void CurrentInstructionUpdate()
    {
        instructionStep step = currentInstructionModel.GetInstructionStep(currentStep);

        stepText.text  = "Step:  " + currentStep;
        titleText.text = step.Title;
        bodyText.text  = step.BodyText;
        if (!string.IsNullOrEmpty(step.ImageName))
        {
            imageGraphic.GetComponent <LayoutElement>().enabled = true;
            imageGraphic.GetComponent <RawImage>().texture      = Resources.Load((string)step.ImageName) as Texture;
            print(step.ImageName);
        }
        else
        {
            imageGraphic.GetComponent <LayoutElement>().enabled = false;
            imageGraphic.GetComponent <RawImage>().texture      = null;
        }
    }
    private void CurrentInstructionUpdate()
    {
        InstructionStep step = currentInstructionModel.GetInstructionStep(currentStep);

        OnInstructionUpdate.Invoke(step);
    }