Beispiel #1
0
 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)
         });
     }
 }
Beispiel #2
0
    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);
            }
        }
    }
Beispiel #3
0
 public static void ObjectStruck(S.ObjectStruck p)
 {
     gameManager.ObjectStruck(p);
 }