Пример #1
0
 // Start is called before the first frame update
 void Start()
 {
     if (instance == null)
     {
         instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
     effectHolder = new GameObject("Effect").transform;
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        // text=GameObject.Find("Text").GetComponent<Text>();
        if (instance == null)
        {
            instance = this;
        }
        else
        {
            Destroy(gameObject);
        }

        boardManager          = GetComponent <BoardManagerCombat>();
        effectControlleur     = GetComponent <EffectControlleur>();
        inventaireControlleur = GetComponent <InventaireControlleur>();
        gestionAffichageSort  = new GestionAffichageSort();

        //initGame();
        loadSave();
        ChangeSceneService.instance.finChargement();
    }