void Start() { audios = GetComponent <AudioSource>(); health = 4; Controller = GetComponent <MoverOnRails>(); playerRigidbody = GetComponent <Rigidbody>(); }
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)); }
void Start() { Controller = GetComponent <MoverOnRails>(); Controller.Velocity = this.Velocity; }
void Start() { Controller = GetComponent<MoverOnRails>(); }