Exemple #1
0
 private void Awake()
 {
     m_Board_Manager = this;
     Unit_List       = new List <Unit_Manager>();
     Sequence        = new List <int>();
     col             = new Color[] { Color.blue, Color.red };
     StartCoroutine(Loading_());
 }
    void Awake()
    {
        if (instance == null)
        {
            instance = this;
        }
        else if (instance != this)
        {
            Destroy(gameObject);
        }

        DontDestroyOnLoad(gameObject);
        enemies     = new List <Enemy> ();
        boardScript = GetComponent <Board_Manager>();
        InitGame();
    }
    void Awake()
    {
        //Make the Game and Board singletons
        if (Game_Manager.instance == null)
        {
            Game_Manager.instance = this;
        }
        else if (Game_Manager.instance != this)
        {
            Destroy(this.gameObject);
        }
        DontDestroyOnLoad(this.gameObject);
        this.enemies = new List <Enemy>();

        this.boardScript = this.GetComponent <Board_Manager>();
        //this.InitGame();
    }
 private void Awake()
 {
     boardManager = FindObjectOfType <Board_Manager>();
 }
Exemple #5
0
 private void Start()
 {
     //StageStart();
     boardManager = FindObjectOfType <Board_Manager>();
 }
Exemple #6
0
 private void Awake()
 {
     mySlot           = GetComponent <Board_Slot>();
     playerController = FindObjectOfType <Player_Controller>();
     boardManager     = FindObjectOfType <Board_Manager>();
 }
Exemple #7
0
 private void Awake()
 {
     boardManager     = FindObjectOfType <Board_Manager>();
     playerController = FindObjectOfType <Player_Controller>();
 }