Esempio n. 1
0
 private void Awake()
 {
     e_PlayerState = EPlayerState.e_Stop;
     m_Creator     = FindObjectOfType <UFOCreator>();
     m_GameManager = FindObjectOfType <CUFOGameManager>();
     c_ADS         = FindObjectOfType <CADS>();
     m_Ach         = FindObjectOfType <CAchievements>();
 }
Esempio n. 2
0
    void Start()
    {
        m_PlayManager = FindObjectOfType <PlayManager>();
        m_Achiv       = FindObjectOfType <CAchievements>();
        m_ADS         = FindObjectOfType <CADS>();

        LoadSetup();

        _curIndColFon     = UnityEngine.Random.Range(0, BackgroundColors.Length);
        _newIndColFon     = _curIndColFon;
        _backgroundCamera = GetComponent <Camera>();
        _backgroundCamera.backgroundColor = BackgroundColors[_curIndColFon];

        e_TypeWinAnim = eTypeAnym.e_No;

        if (m_LocManager == null)
        {
            m_LocManager = FindObjectOfType <LocalizationManager>();
        }
        StartCoroutine(m_LocManager.LoadLocalization(langTypeInText[(int)m_Language]));
    }
Esempio n. 3
0
 void Start()
 {
     m_ADS = FindObjectOfType <CADS>();
 }