protected override void RpcDoShootEffect(Vector3 pos, Quaternion rot, PhotonMessageInfo pmi)
 {
     if (Player.FindPlayer(pmi.sender).gameObject != null)
     {
         BulletTrailPrefab.GetComponent <BulletMovment>().own =
             Player.FindPlayer(pmi.sender).gameObject.GetComponent <TankEvolution>().HullGameObject;
     }
     Instantiate(BulletTrailPrefab, pos, rot);
 }
Exemplo n.º 2
0
 protected override void RpcDoShootEffect(Vector3 pos, Quaternion rot, PhotonMessageInfo pmi)
 {
     BulletTrailPrefab.GetComponent <BulletMovment>().own = GetComponent <BOTTurret>().botMovement.gameObject;
     Instantiate(BulletTrailPrefab, pos, rot);
 }