Ejemplo n.º 1
0
    void Awake()
    {
        if (Instance != null && Instance != this)
        {
            Destroy(gameObject);
        }
        Instance = this;
        // Furthermore we make sure that we don't destroy between scenes (this is optional)
        DontDestroyOnLoad(gameObject);

        BoardMatchContainer = new BoardMatchContainer();
        BonusChecker        = new BonusChecker();
    }
Ejemplo n.º 2
0
	void Awake()
	{
		if (Instance != null && Instance != this)
		{
			Destroy(gameObject);
		}
		Instance = this;
		// Furthermore we make sure that we don't destroy between scenes (this is optional)
		DontDestroyOnLoad(gameObject);

		BoardMatchContainer = new BoardMatchContainer();
		BonusChecker = new BonusChecker();
	}
Ejemplo n.º 3
0
	// Use this for initialization
	void Awake()
	{
		BoardMatchData = new BoardMatchContainer();

	}
Ejemplo n.º 4
0
 // Use this for initialization
 void Awake()
 {
     BoardMatchData = new BoardMatchContainer();
 }