示例#1
0
 private void Start()
 {
     // disable the component if the player is a student
     // ensures that students may not edit badges
     if (InformationManager.Instance.playerType == PlayerType.STUDENT)
     {
         this.enabled = false;
     }
     gamificationManager = GetComponentInChildren <GamificationManager>();
 }
示例#2
0
    /// <summary>
    /// initializes the quiz and loads the quiz elements
    /// </summary>
    public new void Start()
    {
        Init();
        objInfo             = GetComponent <ObjectInfo>();
        gamificationManager = transform.parent.parent.GetComponent <GamificationManager>();
        subPathLoad        += objectInfo.ModelName + "/";
        subPathSave        += objectInfo.ModelName + "/";

        if (InformationManager.Instance.playerType == PlayerType.STUDENT)
        {
            editMode = false;
        }
        else
        {
            editMode = true;
        }

        // load the annotations/quiz questions
        LoadAnnotations();
    }