Exemplo n.º 1
0
 public override void StartEvent()
 {
     base.StartEvent();
     targets = GameObject.Find("Students");
     chalk   = GameObject.Find("PackOfChalk 2");
     //tc = targets.GetComponent<Target_Control>();
     act = targets.GetComponent <ActivateStudents>();
     chalk_throw_tutorial_point = chalk.transform.Find("Chalk_Grab_Tutorial_Point").gameObject;
     chalk_throw_tutorial_point.SetActive(true);
     script = chalk_throw_tutorial_point.GetComponent <Tutorial_Point_Anim_Control>();
     act.Restart();
     activate();
 }
Exemplo n.º 2
0
 void Start()
 {
     script = gameObject.GetComponent <AnimationControll>();
     tutorial_point_user = transform.parent.parent.Find("Chalk_Throw_Tutorial_Point")
                           .GetComponent <Tutorial_Point_Anim_Control>();
 }