示例#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>();
 }