Beispiel #1
0
 public void Fire(Vector3 direction)
 {
     if (CooldownManager.GetTimer(FIRE) <= 0)
     {
         CooldownManager.AddTimer(FIRE, FireRate);
         photonView.RPC("RPC_Fire", RpcTarget.AllViaServer, photonView.Owner, direction);
     }
 }
 public void DropFlag()
 {
     if (CooldownManager.GetTimer("FLAG") < 0)
     {
         CooldownManager.AddTimer("FLAG", .5f);
     }
     if (Hand.GetItem() != null)
     {
         photonView.RPC("RPC_DropFlag", RpcTarget.AllViaServer, Hand.GetItem().GetComponent <PhotonView>().ViewID, transform.position);
     }
     Flag = null;
 }
Beispiel #3
0
 private void Start()
 {
     CooldownManager.AddTimer("LIFE", Life);
 }