Exemplo n.º 1
0
	// Use this for initialization
	void Start () 
	{
		PuzzleBoard = ComponentContainer.PuzzleBoardController.PuzzleBoard;
		PuzzlePresentation = ComponentContainer.PuzzlePresentation;
		PuzzlePresentation.Instance.GemCellAdded += Grid_GemCellAdded;
		PuzzlePresentation.Instance.GemCellRemoved += Grid_GemCellRemoved;
		selectedGemCell = null;
	}
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     PuzzleBoard        = ComponentContainer.PuzzleBoardController.PuzzleBoard;
     PuzzlePresentation = ComponentContainer.PuzzlePresentation;
     PuzzlePresentation.Instance.GemCellAdded   += Grid_GemCellAdded;
     PuzzlePresentation.Instance.GemCellRemoved += Grid_GemCellRemoved;
     selectedGemCell = null;
 }
Exemplo n.º 3
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);
 }
Exemplo n.º 4
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);
	}