本文整理汇总了C#中SFSObject.GetBool方法的典型用法代码示例。如果您正苦于以下问题:C# SFSObject.GetBool方法的具体用法?C# SFSObject.GetBool怎么用?C# SFSObject.GetBool使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SFSObject
的用法示例。
在下文中一共展示了SFSObject.GetBool方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: fromSFSObjectSinUS
public void fromSFSObjectSinUS(SFSObject us)
{
this.id_sprint=us.GetLong("Id_Sprint");
this.id_proyecto=us.GetLong("id_Proyecto");
this.estado=us.GetUtfString("estado");
this.fechaInicio=System.DateTime.Parse(us.GetUtfString("fechaInicio"));//new System.DateTime(us.GetLong ("fechaInicio"));
this.fechaFin=System.DateTime.Parse(us.GetUtfString("fechaFin"));//new System.DateTime(us.GetLong ("fechaFin"));
this.titulo=us.GetUtfString("titulo");
this.cerrado = us.GetBool("cerrado");
string s = us.GetUtfString ("fecha_ultimo_cambio");
if(!s.Equals(""))
this.fecha_ultimo_cambio = System.DateTime.Parse(s);
Debug.Log (this.fecha_ultimo_cambio.ToString ());
}
示例2: SignUpResponse
//end methods for send()
//methods for responses
private void SignUpResponse(SFSObject sfsdata)
{
bool success = sfsdata.GetBool("success");
if (success) {
OnEvent("register", "Registration successful, please check your email for further instructions.");
} else {
OnEvent("register", sfsdata.GetUtfString("errorMessage"));
}
}
示例3: fromSFSObject
public override void fromSFSObject(SFSObject item)
{
this.id_sprint=item.GetLong("Id_Sprint");
this.id_proyecto=item.GetLong("id_Proyecto");
this.estado=item.GetUtfString("estado");
this.fechaInicio=System.DateTime.Parse(item.GetUtfString("fechaInicio"));//new System.DateTime(us.GetLong ("fechaInicio"));
this.fechaFin=System.DateTime.Parse(item.GetUtfString("fechaFin"));//new System.DateTime(us.GetLong ("fechaFin"));
this.titulo=item.GetUtfString("titulo");
this.cerrado = item.GetBool("cerrado");
string s = item.GetUtfString ("fecha_ultimo_cambio");
if(!s.Equals(""))
this.fecha_ultimo_cambio = System.DateTime.Parse(s);
ISFSArray stories=item.GetSFSArray("listaStories");
foreach(SFSObject story in stories)
{
UserStory UserStory=new UserStory();
UserStory.fromSFSObject(story);
listaStories.Add(UserStory);
}
Debug.Log (this.fecha_ultimo_cambio.ToString ());
}
示例4: fromSFSObject
public override void fromSFSObject(SFSObject item)
{
listaTareas = new ArrayList();
listaEstimacion = new ArrayList();
listaCriterios = new ArrayList ();
this.id_UserStory=item.GetLong("id_UserStory");
this.id_Sprint = item.GetLong ("Id_Sprint");
this.descripcion=item.GetUtfString("descripcion");
this.prioridad=item.GetInt("prioridad");
this.titulo=item.GetUtfString("Titulo");
this.estadoEstimacion=item.GetInt("estadoEstimacion");
this.id_proyecto=item.GetLong("id_proyecto");
string s = item.GetUtfString ("fecha_ultimo_cambio");
this.cerrada = item.GetBool("cerrada");
if(!s.Equals(""))
this.fecha_ultimo_cambio = System.DateTime.Parse(s);
this.valorEstimacion = item.GetFloat("valorEstimacion");
ISFSArray tareas=item.GetSFSArray("listaTareas");
foreach(SFSObject tarea in tareas)
{
Task task=new Task();
task.fromSFSObject(tarea);
listaTareas.Add(task);
}
ISFSArray estimaciones=item.GetSFSArray("listaEstimacion");
foreach(SFSObject estimacion in estimaciones)
{
Estimacion est=new Estimacion();
est.fromSFSObject(estimacion);
listaEstimacion.Add(est);
}
ISFSArray criterios=item.GetSFSArray("listaCriterios");
if(criterios !=null)
foreach(SFSObject criteria in criterios)
{
AcceptanceCriteria ac=new AcceptanceCriteria();
ac.fromSFSObject(criteria);
listaCriterios.Add(ac);
}
}
示例5: HandleUpdatePlayerInfo
public static void HandleUpdatePlayerInfo(SFSObject message)
{
TetrisPlayer = message.GetBool ("tetrisPlayer");
BreakoutPlayer = message.GetBool ("breakoutPlayer");
PlatformPlayer = message.GetBool ("platformPlayer");
}
示例6: HandleSoundObject
public static void HandleSoundObject(SFSObject message)
{
string sound = message.GetUtfString("sound");
bool isPlay = message.GetBool("state");
if (isPlay)
{
if (sound == "kick")
kickS.Play ();
else if (sound == "jump")
jumpS.Play ();
else if (sound == "surge")
surgeS.Play ();
else if (sound == "blink")
blinkS.Play ();
else if (sound == "blockMove")
pieceMove.Play ();
else if (sound == "lineClear")
lineClear.Play ();
else if (sound == "ballBounce")
ballBounce.Play ();
else if (sound == "brickHit")
brickHit.Play ();
else if (sound == "dead")
charDeadS.Play ();
}
else
{
if (sound == "kick")
kickS.Stop ();
else if (sound == "jump")
jumpS.Stop ();
else if (sound == "surge")
surgeS.Stop ();
else if (sound == "blink")
blinkS.Stop ();
else if (sound == "blockMove")
pieceMove.Stop ();
else if (sound == "lineClear")
lineClear.Stop ();
else if (sound == "ballBounce")
ballBounce.Stop ();
else if (sound == "brickHit")
brickHit.Stop ();
else if (sound == "dead")
charDeadS.Stop ();
}
//AudioClip ac = Resources.Load(sound_path) as AudioClip;
//AudioSource.PlayClipAtPoint(ac, Camera.main.transform.position);
//pieceMove = gameObject.AddComponent<AudioSource>();
//pieceMove.clip = Resources.Load("Sounds/tetris_move") as AudioClip;
}
示例7: HandleObjectUpdate
public static void HandleObjectUpdate(SFSObject message)
{
string type = message.GetUtfString ("objectType");
float xPos = message.GetFloat ("xPos");
float yPos = message.GetFloat ("yPos");
float zPos = message.GetFloat ("zPos");
float xRot = message.GetFloat ("xRot");
float yRot = message.GetFloat ("yRot");
float zRot = message.GetFloat ("zRot");
float xDir = message.GetFloat ("xDir");
float yDir = message.GetFloat ("yDir");
float zDir = message.GetFloat ("zDir");
int blockType = message.GetInt ("blockType");
string[] cubeIDs = message.GetUtfStringArray ("cubeIDs");
string id = message.GetUtfString ("ID");
int animType = message.GetInt ("charAnim");
float Speed = message.GetFloat ("Speed");
bool Hit = message.GetBool ("Hit");
bool Jump = message.GetBool ("Jump");
Vector3 position = new Vector3 (xPos, yPos, zPos);
Quaternion rotation = Quaternion.Euler(new Vector3(xRot, yRot, zRot));
Vector3 forward = new Vector3 (xDir, yDir, zDir);
switch (type) {
case "Block":
UpdateBlockObject(blockType, id, cubeIDs, position, rotation);
break;
case "Bar":
UpdateBarObject(id, position, rotation);
break;
case "Ball":
UpdateBallObject(id, position, rotation);
break;
case "Character":
UpdateCharacterObject (id, (CharacterAnimType)animType, position, rotation, forward, Speed, Hit, Jump);
break;
}
}