public SkillEventTarget(SkillEventTarget source) { this.target = source.target; this.excludeSelf = new SkillBool(source.excludeSelf); this.gameObject = new SkillOwnerDefault(source.gameObject); this.fsmName = new SkillString(source.fsmName); this.sendToChildren = new SkillBool(source.sendToChildren); this.fsmComponent = source.fsmComponent; }
public void LogSendEvent(SkillState state, SkillEvent fsmEvent, SkillEventTarget eventTarget) { if (state == null || fsmEvent == null || fsmEvent.IsSystemEvent) { return; } SkillLogEntry entry = new SkillLogEntry { Log = this, LogType = SkillLogType.SendEvent, State = state, Event = fsmEvent, Text = "SEND EVENT: " + fsmEvent.Name, EventTarget = new SkillEventTarget(eventTarget) }; this.AddEntry(entry, false); }
public DelayedEvent(Skill fsm, SkillEventTarget eventTarget, string fsmEvent, float delay) : this(fsm, fsmEvent, delay) { this.eventTarget = eventTarget; }