예제 #1
0
 private void Start()
 {
     characterController = GetComponent <CharacterController>();
     animator            = GetComponent <Animator>();
     gunShot             = GetComponent <GunShot>();
     currentLookSpeed    = lookSpeed;
 }
예제 #2
0
 void Start()
 {
     Cursor.lockState = CursorLockMode.Locked;
     Cursor.visible = (false);
     Time.timeScale = 1;
     glock = attack.GetComponent<Glock>();
     gunShot = attack.GetComponent<GunShot> ();
 }
예제 #3
0
    // Use this for initialization
    void Start()
    {
        Screen.lockCursor = true;
        SwitchWeapon(defaultWeapon);

        scrollSensitivity = 0.5f;

        scrollValue = 0;

        weaponIndex = 0;

        GunShot boom = GetComponent <GunShot>();
    }
예제 #4
0
    public void Setup()
    {
        this.enabled = true;
        _gunShot     = GetComponent <GunShot>();
        canvas       = GameObject.FindGameObjectWithTag("Canvas");
        hp           = GameManager.instance.hud.HP;

        wasEnabledSrcipts = new bool[disableOnDeathScripts.Length];
        for (int i = 0; i < wasEnabledSrcipts.Length; i++)
        {
            wasEnabledSrcipts[i] = disableOnDeathScripts[i].enabled;
        }

        SetDefaults();
    }
예제 #5
0
 // Use this for initialization
 void Start()
 {
     gun = bulletSpawn.GetComponent <GunShot>();
 }
예제 #6
0
 // Use this for initialization
 void Start()
 {
     gun = bulletSpawn.GetComponent <GunShot>();
     // rb = GetComponent<Rigidbody>();
     mover = gameObject.GetComponent <PlayerMover>();
 }