Ejemplo n.º 1
0
 private void OnDestroy()
 {
     if (this == sInstance)
     {
         sInstance = null;
     }
 }
        private void Start()
        {
            StartCoroutine(SetupBuyableMenuPanels());

            gameMenuPanelManager = GameMenuPanelManager.instance;

            ScorePanel = ScorePanelManager.Instance;

            ClosePanels();
        }
Ejemplo n.º 3
0
 void Awake()
 {
     if (sInstance == null)
     {
         sInstance = this;
         Setup();
     }
     else if (sInstance != this)
     {
         Destroy(this.gameObject);
         return;
     }
 }
Ejemplo n.º 4
0
    //---------------------------------------------------------------------------------------------

    public static void EnableScoreBoard(bool _Enable, GameObject _ScorePanel)
    {
        _ScorePanel.SetActive(_Enable);

        if (_Enable)
        {
            ScorePanelManager _scorePanel = _ScorePanel.GetComponent <ScorePanelManager>();
            if (_scorePanel != null)
            {
                _scorePanel.CreateScores();
            }
        }
    }
Ejemplo n.º 5
0
 private void Awake()
 {
     instance = this;
 }