public void NPCTalking(FezUnityNpcInstance npc) { if (Input.GetButtonDown("Trigger")) { npc.UpdateText(); } }
public static GameObject GenObject(this NpcInstance npc, GameObject parent = null) { GameObject obj = new GameObject(npc.Name); if (parent != null) { obj.transform.parent = parent.transform; } obj.transform.localPosition = npc.Position; FezUnityNpcInstance fezHolder = obj.AddComponent <FezUnityNpcInstance>(); fezHolder.Fill(npc); obj.isStatic = false; // Fix Unity / Trixel Engine Z direction conflict obj.FezZ(); return(obj); }
private static bool _ShouldStopTalking(FezUnityNpcInstance self) { return(false); }
private static void _Talking(FezUnityNpcInstance self) { }
public bool NPCShouldStopTalking(FezUnityNpcInstance npc) { return(36f < (transform.position - npc.transform.position).sqrMagnitude); }
public bool NPCShouldStartTalking(FezUnityNpcInstance npc) { return((transform.position - npc.transform.position).sqrMagnitude < 25f); }