예제 #1
0
 /**
  * <returns> This method will return the FloorHandler's singletons instance. </returns>
  */
 public static FloorHandler GetInstance()
 {
     if(_instance == null) {
         _instance = new FloorHandler();
     }
     return _instance;
 }
예제 #2
0
        /*
        In this constructor the floorhandler is set so it can be used within this class, the base will be set in the AbstractDialog.

            */
        public AddFloorDialog(string name, Action callback)
            : base(name, callback)
        {
            this._updateParentCallback = callback;
            this._floorHandler = FloorHandler.GetInstance();
        }