Inheritance: MonoBehaviour
Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     Cursor.lockState = CursorLockMode.Locked;
     character        = GetComponent <Rigidbody>();
     mouseLook        = GetComponent <CustomMouseLook>();
     rotator          = GetComponent <CharacterRotator>();
     sMovement        = GetComponent <SurfaceMovement>();
     grappleGun       = GetComponent <GrappleGun>();
     if (grappleGun)
     {
         grappleGun.controller = this;
     }
     grappled  = false;
     justFired = false;
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     Cursor.lockState = CursorLockMode.Locked;
     character = GetComponent<Rigidbody>();
     mouseLook = GetComponent<CustomMouseLook>();
     rotator = GetComponent<CharacterRotator>();
     sMovement = GetComponent<SurfaceMovement>();
     grappleGun = GetComponent<GrappleGun>();
     if (grappleGun) grappleGun.controller = this;
     grappled = false;
     justFired = false;
 }