Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        m_fall             = GetComponent <fall>();
        m_Rigidbody        = GetComponent <Rigidbody>();
        Collider           = GetComponent <Collider>();
        transform.rotation = Quaternion.Euler(0, 90, 0);

        xAccelerator = new walkingAccelerator();
        zAccelerator = new walkingAccelerator();
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     m_fall      = GetComponent <fall>();
     m_Rigidbody = GetComponentInChildren <Rigidbody>();
 }