public void ObjectStruck(S.ObjectStruck p) { if (ObjectList.TryGetValue(p.ObjectID, out MapObject ob)) { ob.ActionFeed.Add(new QueuedAction { Action = MirAction.Struck, Direction = p.Direction, Location = new Vector2(p.Location.X, p.Location.Y) }); } }
public void ObjectStruck(S.ObjectStruck p) { if (ObjectList.TryGetValue(p.ObjectID, out MapObject ob)) { bool struck = ob.gameObject.GetComponentInChildren <Animator>().GetBool("Struck"); if (!struck) { ob.gameObject.GetComponentInChildren <Animator>().SetBool("Struck", true); } } }
public static void ObjectStruck(S.ObjectStruck p) { gameManager.ObjectStruck(p); }