コード例 #1
0
    private void CurrentInstructionUpdate()
    {
        InstructionStep step = currentInstructionModel.GetInstructionStep(currentStep);

        Debug.Log("STEP " + step.Name + ": " + step.Title);
        OnInstructionUpdate.Invoke(step);
    }
コード例 #2
0
    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);
    }