protected void OnNameReceived(Guid agentId, AvatarName avatarName) { if (MarkerByAgentId.ContainsKey(agentId)) { MarkerByAgentId[agentId].ToolTipTarget.Text = avatarName.DisplayName; } }
public override int GetHashCode() { unchecked { var hashCode = AvatarAddress.GetHashCode(); hashCode = (hashCode * 397) ^ AgentAddress.GetHashCode(); hashCode = (hashCode * 397) ^ ArmorId; hashCode = (hashCode * 397) ^ Level; hashCode = (hashCode * 397) ^ (AvatarName != null ? AvatarName.GetHashCode() : 0); hashCode = (hashCode * 397) ^ Exp.GetHashCode(); hashCode = (hashCode * 397) ^ StageClearedBlockIndex.GetHashCode(); hashCode = (hashCode * 397) ^ UpdatedAt.GetHashCode(); return(hashCode); } }
public virtual void Initialize(Game mmoGame, Item mmoItem) { _item = mmoItem; _game = mmoGame; this.name = _item.Id; transform.localScale = new Vector3(1f, 1f, 1f); transform.position = new Vector3(_item.Position[0], _item.Position[2], _item.Position[1]); transform.rotation = Quaternion.Euler(_item.Rotation[0], _item.Rotation[1], _item.Rotation[2]); _avatarName = GetComponentInChildren<AvatarName>(); if (_avatarName != null) { _avatarName.Text = _item.AvatarName; } }