Пример #1
0
 private void EnsureRadiusView()
 {
     if (this.radiusView == null)
     {
         this.radiusView = new DynamicRadiusView();
     }
 }
Пример #2
0
 public BuildingSelector()
 {
     this.selectedBuilding    = null;
     this.grabPoint           = Vector3.zero;
     this.pressScreenPosition = Vector2.zero;
     this.dragged             = false;
     this.liftTimerId         = 0u;
     this.liftingBuilding     = null;
     this.editModeTimerId     = 0u;
     this.radiusView          = null;
     this.buildingController  = Service.BuildingController;
     Service.EventManager.RegisterObserver(this, EventId.BuildingViewReady, EventPriority.Default);
     Service.EventManager.RegisterObserver(this, EventId.GameStateChanged, EventPriority.Default);
     this.longPress = new LongPressView();
     this.additionalSelectedBuildings = new List <SmartEntity>();
 }
Пример #3
0
 public unsafe static long $Invoke10(long instance, long *args)
 {
     DynamicRadiusView.StaticReset();
     return(-1L);
 }