Esempio n. 1
0
 //Reactivates player to normal function
 public void ReleasePlayer()
 {
     player.GetComponent <MouseLookDBJS>().UnlockIt();
     PlayerWeapons.weaponCam.GetComponent <MouseLookDBJS>().UnlockIt();
     ladder = false;
     SmartCrosshair.draw           = true;
     DBStoreController.canActivate = true;
     PlayerWeapons.playerActive    = true;
     CharacterMotorDB.paused       = false;
     if (temp)
     {
         PlayerWeapons.ShowWeapon();
     }
 }
Esempio n. 2
0
        public void deActivateStore()
        {
            if (PlayerWeapons.HasEquipped() <= 0 && !canExitWhileEmpty)
            {
                return;
            }
            storeActive = false;
            inStore     = false;
            //GUIController.state = GUIStates.playing;
            //BroadcastMessage("Lock");
            Time.timeScale     = 1;
            Screen.lockCursor  = true;
            LockCursor.canLock = true;
            PlayerWeapons.ShowWeapon();
            //playerW.SelectWeapon(playerW.selectedWeapon); // activate graphics on selected weapon
            GameObject player = GameObject.FindWithTag("Player");

            player.BroadcastMessage("UnFreeze", SendMessageOptions.DontRequireReceiver);
        }