Example #1
0
    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;
    }
Example #2
0
 public static void ToggleAlignmentPlane()
 {
     AlignmentPlane.Toggle();
 }
Example #3
0
 public static void SetAlignmentPlane(float y)
 {
     AlignmentPlane.Set(y);
 }
Example #4
0
 public static void ShiftAlignmentPlane(float y)
 {
     AlignmentPlane.Shift(y);
 }