Пример #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();
    }
Пример #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();
	}
Пример #3
0
	// Use this for initialization
	void Awake()
	{
		BoardMatchData = new BoardMatchContainer();

	}
Пример #4
0
 // Use this for initialization
 void Awake()
 {
     BoardMatchData = new BoardMatchContainer();
 }