Пример #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();
 }
Пример #2
0
 private void Start()
 {
     offset           = new Vector3(0.1f, 1.8f, 0.0f);
     clawGameObject   = GameObject.Find("Claw(Clone)/ClawBelka/ClawHolder/Claw/ClawPiston/Head");
     students         = GameObject.Find("Students").GetComponent <ActivateStudents>();
     cntrl            = GameObject.FindGameObjectWithTag("Claw").GetComponent <ClawControl>();
     head             = clawGameObject.GetComponent <Animator>();
     clawNeck         = GameObject.Find("Claw(Clone)/ClawBelka/ClawHolder/Claw").GetComponent <Animator>();
     student          = RandStudent();
     studentTransform = student.transform;
     defaultLocation  = studentTransform.position;
     clawTransform    = clawGameObject.transform;
     studentAnimator  = student.gameObject.transform.GetChild(1).GetChild(0).gameObject.GetComponent <AnimationControll>();
     //destination = GameObject.Find("Destination");
     destination          = GameObject.Find("Destination(Clone)");
     destinationTransform = destination.transform.position;
 }