Esempio n. 1
0
 void AmberIt(PlayerStats ps)
 {
     float stunTime = EventManager.amberStunTime * ps.sapModifier;
     ps.Stun(stunTime);
     if (!isServer)
         return;
     GameObject bullet = (GameObject)Instantiate(
         Resources.Load("Prefabs/Environments/Amber"), ps.transform.position,
         Quaternion.identity);
     bullet.GetComponent<Amber>().SetParent(ps.transform);
     Destroy(bullet, stunTime);
     NetworkServer.Spawn(bullet);
 }