public void Initialize() { _whiteTexture = new Texture2D(1, 1); _whiteTexture.SetPixel(0, 0, Color.white); _whiteTexture.Apply(); //_exitButton = GameObject.Find("leave"); _selectedShips.SetActive(false); _groups.gameObject.SetActive(false); _camera = Camera.main; AlignmentPlane.Initialize(); InitializeShipSpeedSelections(); InitializeSimulationSpeedSelections(); CommandMapper.OnGroupCreated += CreateGroupItem; CommandMapper.OnGroupRemoved += RemoveGroupItem; GameManager.OnSimulationSpeedChanged += OnSimulationSpeedChanged; GameManager.OnGameStatusUpdated += UpdateExitButton; GameManager.OnLeave += OnLeave; }
public static void ToggleAlignmentPlane() { AlignmentPlane.Toggle(); }
public static void SetAlignmentPlane(float y) { AlignmentPlane.Set(y); }
public static void ShiftAlignmentPlane(float y) { AlignmentPlane.Shift(y); }