void Start()
 {
     movement   = Vector3.zero;
     model      = GetComponent <PlayerModel>();
     wepon      = gameObject.GetComponentInChildren <WeponController>();
     controller = GetComponent <CharacterController>();
     animator   = GetComponent <Animator>();
 }
Example #2
0
    RaycastHit cameraRayHit;    // The object that the ray hits

    private void Start()
    {
        uiManager = FindObjectOfType <UIManager>();
        uiManager.HealthControl(health);

        wController = FindObjectOfType <WeponController>();

        UnityEngine.Cursor.SetCursor(InGameCursor, Vector2.zero, CursorMode.Auto);
    }