Example #1
0
        /*
         * Unity events
         */

        void Awake()
        {
            _commandStack = new CommandStack();

            _editModeDic = new Dictionary <EditMode, IEditModeOperator>();

            _editModeDic.Add(EditMode.Particle, new ParticleEditModeOperator(this));
            _editModeDic.Add(EditMode.Spring, new SpringEditModeOperator(this));
            _editModeDic.Add(EditMode.Angle, new AngleEditModeOperator(this));

            _editableForm = new EditableForm();

            _simulator = new SimpleSim();
            _simulator.Init();
        }
Example #2
0
 public override void AfterImportJson(EditableForm form)
 {
 }
Example #3
0
 public override void AfterImportJson(EditableForm form)
 {
     _a = form.GetByUID(_aUID) as ParticleInfo;
     _b = form.GetByUID(_bUID) as ParticleInfo;
 }
Example #4
0
 public abstract void AfterImportJson(EditableForm form);
Example #5
0
 public override void AfterImportJson(EditableForm form)
 {
     form.GetByUID(_aUID);
 }