当前位置: 首页>>代码示例>>C#>>正文


C# ISFSObject.GetDouble方法代码示例

本文整理汇总了C#中ISFSObject.GetDouble方法的典型用法代码示例。如果您正苦于以下问题:C# ISFSObject.GetDouble方法的具体用法?C# ISFSObject.GetDouble怎么用?C# ISFSObject.GetDouble使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ISFSObject的用法示例。


在下文中一共展示了ISFSObject.GetDouble方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: GetDouble

 public double GetDouble(ISFSObject data, string key)
 {
     if (receiveEncrypted)
     {
         return provider.DecryptDouble(data.GetByteArray(key));
     }
     else
     {
         return data.GetDouble(key);
     }
 }
开发者ID:Antaresgames,项目名称:AegisBorn,代码行数:11,代码来源:ReceivableObject.cs

示例2: HandleShotFired

 // When someon shots handle it and play corresponding animation
 private void HandleShotFired(ISFSObject dt)
 {
     int userId = dt.GetInt ("id");
     if (userId != smartFox.MySelf.Id) {
         double sx, sy, sz, ex, ey, ez;
         sx = dt.GetDouble ("sx");
         sy = dt.GetDouble ("sy");
         sz = dt.GetDouble ("sz");
         ex = dt.GetDouble ("ex");
         ey = dt.GetDouble ("ey");
         ez = dt.GetDouble ("ez");
         Vector3 start = new Vector3 ((float)sx, (float)sy, (float)sz);
         Vector3 end = new Vector3 ((float)ex, (float)ey, (float)ez);
         string shooterName = smartFox.LastJoinedRoom.GetUserById (userId).Name;
         //SoundManager.Instance.PlayShot(PlayerManager.Instance.GetRecipient(userId).audio);
         //PlayerManager.Instance.SyncAnimation(userId, "Shot", 1);
         Attack.instance.shot (start, end, shooterName);
     }
 }
开发者ID:kimreik,项目名称:Snow,代码行数:20,代码来源:NetworkManager.cs

示例3: Setup

 public void Setup(ISFSObject obj)
 {
     particleSystem.renderer.sortingLayerName = "2 Middle Lower UI";
     this.gwName = obj.GetUtfString("NAME");
     this.state = obj.GetUtfString("STATE");
     this.owner = obj.GetUtfString("OWNER");
     this.atk = obj.GetInt("ATK");
     this.def = obj.GetInt("DEF");
     this.type = obj.GetUtfString("TYPE");
     ISFSArray sws = obj.GetSFSArray("SW");
     this.region = obj.GetUtfString("REGION");
     this.sw = new string[3];
     this.sw[0] = (string) sws.GetElementAt(0);
     this.sw[1] = (string) sws.GetElementAt(1);
     this.sw[2] = (string) sws.GetElementAt(2);
     mg = GameObject.Find("Manager").GetComponent<Manager>();
     gameObject.transform.position = new Vector3((float)obj.GetDouble("X")*mg.getScale().x,(float)obj.GetDouble("Y")*mg.getScale().y,1F);
     gameObject.transform.localScale = new Vector3(0.25f,0.25f,0.25f);
 }
开发者ID:Hargalaten,项目名称:meGAMEss,代码行数:19,代码来源:Gateway.cs


注:本文中的ISFSObject.GetDouble方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。