public HapticDefinitionFile(RootEffect root) { this.root_effect = root; this.sequence_definitions = new DefDictionary <JsonEffectAtom>(); this.pattern_definitions = new DefDictionary <JsonSequenceAtom>(); this.experience_definitions = new DefDictionary <JsonPatternAtom>(); }
public void Load(HapticDefinitionFile other) { this.root_effect = other.root_effect; this.pattern_definitions = other.pattern_definitions; this.sequence_definitions = other.sequence_definitions; this.experience_definitions = other.experience_definitions; }
void ApplyEffect() { RootEffect rootEffect = target.GetComponent <RootEffect>(); if (rootEffect != null) { Destroy(rootEffect); } rootEffect = target.AddComponent <RootEffect>(); rootEffect.statusImage = statusImage; rootEffect.SetDuration(rootDuration); }