public SkillOwnerDefault(SkillOwnerDefault source) { if (source != null) { this.ownerOption = source.ownerOption; this.gameObject = new SkillGameObject(source.GameObject); } }
public void ResetParameters() { this.excludeSelf = false; this.gameObject = null; this.fsmName = ""; this.sendToChildren = false; this.fsmComponent = null; }
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 static string GetValueLabel(Skill fsm, SkillOwnerDefault ownerDefault) { if (ownerDefault == null) { return("[null]"); } if (ownerDefault.OwnerOption == OwnerDefaultOption.UseOwner) { return("Owner"); } return(ActionHelpers.GetValueLabel(ownerDefault.GameObject)); }
public static string CheckPhysicsSetup(SkillOwnerDefault ownerDefault) { if (ownerDefault == null) { return(""); } if (ownerDefault.OwnerOption != OwnerDefaultOption.UseOwner) { return(ActionHelpers.CheckPhysicsSetup(ownerDefault.GameObject.Value)); } return(ActionHelpers.CheckOwnerPhysicsSetup(ownerDefault.GameObject.Value)); }