Пример #1
0
 // Use this for initialization
 void Start()
 {
     m_Camera = Camera.main;
     m_CharacterController = GetComponent <CharacterController>();
     m_MouseLook.Init(transform, m_Camera.transform);
     m_StickToGroundForce = 10.0f;
     m_GravityMultiplier  = 1.0f;
 }
Пример #2
0
 // Use this for initialization
 void Start()
 {
     m_MouseLook      = this.GetComponent <MyMouseLook>();
     m_Camera.enabled = true;
     cache_rb         = this.GetComponent <Rigidbody>();
     cache_tf         = this.GetComponent <Transform>();
     m_JetpackSound   = this.GetComponent <AudioSource>();
     m_Footsteps      = m_Camera.GetComponent <AudioSource>();
     m_MouseLook.Init(cache_tf, m_Camera.transform);
     m_Jetpack = false;
     //weight = mass * 9.81;
     //m_JetForce = new Vector3(0.0f, 7.5f, 0.0f);
 }