public TwoUnitBuildingContextMenu(Vector2 Position) : base()
		{
			pos = Position;
			unitBubbleTimerIn = new Timer(GlobalConstants.CONTEXT_BUBBLE_TIME, false);
			level.RegisterUpdatableObject(unitBubbleTimerIn);
			unitBubbleTimerOut = new Timer(GlobalConstants.CONTEXT_BUBBLE_TIME, false);
			level.RegisterUpdatableObject(unitBubbleTimerOut);
			unitCountBubbleTimerIn = new Timer(GlobalConstants.CONTEXT_BUBBLE_TIME, false);
			level.RegisterUpdatableObject(unitCountBubbleTimerIn);
			unitCountBubbleTimerOut = new Timer(GlobalConstants.CONTEXT_BUBBLE_TIME, false);
			level.RegisterUpdatableObject(unitCountBubbleTimerOut);

			touchedBubble = -1;
			isTouchingA = false;
			isTouchingB = false;
			isAroundA = false;
			isAroundB = false;
			isTouchingCount = new bool[] { false, false, false, false};
		}
Пример #2
0
		public Building()
		{
			contextTimer = new Timer(GlobalConstants.CONTEXT_MENU_START_TIME, false);
			level.RegisterUpdatableObject(contextTimer);
		}
Пример #3
0
		public FactionAsset() : base()
		{
			contextTimer = new Timer(GlobalConstants.CONTEXT_MENU_START_TIME, false);
			level.RegisterUpdatableObject(contextTimer);
		}