public override int GetHashCode() { int hash = 1; if (UiMsg != global::Messaging.UiMsg.Setspeed) { hash ^= UiMsg.GetHashCode(); } if (DllMsg != global::Messaging.DllMsg.Connected) { hash ^= DllMsg.GetHashCode(); } if (DoubleVal != 0D) { hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(DoubleVal); } if (BoolVal != false) { hash ^= BoolVal.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public void RefreshAmmo(UiMsg msg) { var ammoMsg = msg as UiMsgs.Ammo; ammo.text = ammoMsg.ammo.ToString(); mag.text = ammoMsg.mag.ToString(); }
public void Spread(UiMsg msg) { var spreadMsg = msg as UiMsgs.Spread; this.aimDrawTargetSize = this.aimDrawDefaultSize + spreadMsg.value; this.sizeVelocity = this.aimDrawTrans.sizeDelta.x; }
public void SendEvent(UiMsg msg) { var type = msg.GetType(); if (eventList.ContainsKey(type)) { foreach (var func in eventList[type]) { func(msg); } } }
public void Dot(UiMsg msg) { var dotMsg = msg as UiMsgs.Dot; if (dotMsg.visible) { dotTrans.localScale = Vector3.one; dotTrans.position = Battle.localPlayerCamera.WorldToScreenPoint(dotMsg.position); } else { dotTrans.localScale = Vector3.zero; } }
public void SetWeaponCut(UiMsg msg) { var cutMsg = msg as UiMsgs.WeaponCut; weaponCut.texture = cutMsg.texture; }
public void RefreshHp(UiMsg msg) { var hpMsg = msg as UiMsgs.Hp; hpImage.fillAmount = hpMsg.hp / hpMsg.hpMax; }
public void Blood(UiMsg msg) { this.bloodScreen.Enter(); }
public void Killer(UiMsg msg) { var killerMsg = msg as UiMsgs.Killer; killerNamePanel.Active(killerMsg.value); }
public void Assists(UiMsg msg) { killMsgMgr.AddAssMsg(); }
public void Kill(UiMsg msg) { killMsgMgr.AddKillMsg(); }
public void Hit(UiMsg msg) { var hitMsg = msg as UiMsgs.Hit; animator.SetTrigger(hitMsg.HeadShot ? "hitHead" : "hit"); }