Пример #1
0
    void Start()
    {
        audios     = GetComponent <AudioSource>();
        health     = 4;
        Controller = GetComponent <MoverOnRails>();

        playerRigidbody = GetComponent <Rigidbody>();
    }
Пример #2
0
    IEnumerator Debounce()
    {
        Debug.Log("TESTHIT");
        collide       = obj.GetComponent <MoverOnRails>();
        collisionBody = collide.rigidbody;

        collide.Velocity.y = 10f;
        collide.Velocity.x = 4f;
        audios.Play();

        yield return(new WaitForSeconds(1));
    }
Пример #3
0
 void Start()
 {
     Controller          = GetComponent <MoverOnRails>();
     Controller.Velocity = this.Velocity;
 }
Пример #4
0
 void Start()
 {
     Controller = GetComponent<MoverOnRails>();
 }