Пример #1
0
    // Start is called before the first frame update
    void Start()
    {
        //Fetch the Rigidbody from the GameObject with this script attached
        playerRigidbody = player.GetComponent <Rigidbody>();

        PlayerMouse_Behaviour = player.GetComponent <Mouse_Behaviour>();
        PlayAudio_Behaviour   = player.GetComponent <Audio_Behaviour>();
        //Slider
        timerSlider.maxValue = StartTIme;
        fill      = timerSlider.transform.GetChild(1).GetChild(0).gameObject;
        fillImage = fill.GetComponent <Image> ();
        sk        = Key.GetComponent <SelfRotation_Key>();
    }
Пример #2
0
 void Start()
 {
     index               = 0;
     targetPoint         = pathParent.GetChild(index);
     PlayAudio_Behaviour = GetComponent <Audio_Behaviour>();
 }