Exemple #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();
        }
 public FormLabOperator()
 {
     _stack = new CommandStack();
 }