Example #1
0
 // Use this for initialization
 protected virtual void Start()
 {
     weaponSoundManager = weaponSounds.GetComponent <WeaponSoundManager>();
     laserPistol.SetActive(true);
     playerSwitcher        = GetComponentInParent <StealthPlayerSwitcher>();
     thisPlayerTimeManager = GetComponentInParent <PlayerTimeManager>();
     parent             = transform.parent;
     laserLifetimeReset = laserLifetime;
     damage             = Services.WeaponDefinitions.weapons[WeaponType.Laser].damage;
     myAPcost           = Services.WeaponDefinitions.weapons[WeaponType.Laser].ap_cost;
 }
Example #2
0
 void Start()
 {
     pickups.AddRange(FindObjectsOfType <Pickup>());
     // otherPlayer = GetComponent<StealthPlayerSwitcher>().otherPlayer;
     maxActionPoints       = myActionPoints;
     playerIdentifier      = GetComponent <PlayerIdentifier>();
     myCanvasUpdater       = myCanvas.GetComponent <PlayerCanvasUpdater>();
     firstPersonController = GetComponent <FirstPersonController>();
     playerFrozenState     = PlayerFrozenState.Frozen;
     rb             = GetComponent <Rigidbody>();
     playerSwitcher = GetComponent <StealthPlayerSwitcher>();
     if (playerIdentifier.myPlayerNum == 0)
     {
         UnFreezeMe();
         // Debug.Log("I'm unfrozen! I am player " + playerIdentifier.myPlayerNum);
     }
     if (playerIdentifier.myPlayerNum == 1)
     {
         FreezeMe();
         // Debug.Log("I'm frozen! I am player " + playerIdentifier.myPlayerNum);
     }
 }