Esempio n. 1
0
 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>();
 }
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
    void ApplyEffect()
    {
        RootEffect rootEffect = target.GetComponent <RootEffect>();

        if (rootEffect != null)
        {
            Destroy(rootEffect);
        }
        rootEffect             = target.AddComponent <RootEffect>();
        rootEffect.statusImage = statusImage;
        rootEffect.SetDuration(rootDuration);
    }