Exemple #1
0
    void TriggerTellBodyEventToHandHoldable(Person person, string data, TopographyId topographyId, bool weAreStateAuthority = false)
    {
        GameObject hand     = person.GetHandByTopographyId(topographyId);
        GameObject holdable = person.GetThingInHand(hand, restrictToFindingHoldables: true);

        if (holdable != null)
        {
            Thing thing = holdable.GetComponent <Thing>();
            if (thing != null)
            {
                thing.TriggerEvent(StateListener.EventType.OnToldByBody, data, weAreStateAuthority: weAreStateAuthority);
            }
        }
    }
Exemple #2
0
 public static Side TopographyIdToSide(TopographyId topographyId)
 {
     return(topographyId == TopographyId.Left ? Side.Left : Side.Right);
 }