Exemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        _worldController = WorldController.GetWorldController;
        if (_cameraStartLocation != null)
        {
            _worldController.GetComponent <CameraScript>().SetCameraPosAndRot(_cameraStartLocation.position, _cameraStartLocation.rotation.eulerAngles.y);
            _worldController.GetComponent <CameraScript>().SetZoom(0.5f);
        }
        else
        {
            HQ HQPos = WorldController.GetWorldController._HQ;
            if (HQPos != null)
            {
                _worldController.GetComponent <CameraScript>().SetCameraPosAndRot(HQPos.transform.position, 0.0f);
            }
            _worldController.GetComponent <CameraScript>().SetZoom(0.5f);
        }
        LevelInfo levelInfo = LevelInfo._levelInfo;

        _objectiveMenu = levelInfo._objectiveMenu;
        //_victoryPanal = levelInfo._victoryPanal;
        //_defeatPanal = levelInfo._defeatPanal;
        //_statsDisplay = levelInfo._statsDisplay;
        //_defeatText = levelInfo._defeatText;
        AfterStart();
    }
Exemplo n.º 2
0
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }

        Initialise();
    }
Exemplo n.º 3
0
 void Start()
 {
     _worldcontoller  = WorldController.GetWorldController;
     levelInfo        = LevelInfo._levelInfo;
     _tutorialUI      = levelInfo._tutorialUI;
     _objectiveMenu   = levelInfo._objectiveMenu;
     _soundManager    = WorldController.GetWorldController._soundManager;
     _tutorialUIText  = _tutorialUI.GetComponentInChildren <Text>();
     _tutorialUIPanel = _tutorialUI.GetComponentInChildren <Image>();
     CameraControl    = WorldController.GetWorldController.GetComponent <CameraScript>();
     AfterStart();
 }