// Start is called before the first frame update void Start() { instance = GetComponent <BoardManagerScript>(); M3S = GameObject.Find("Match3Manager").GetComponent <Match3Script>(); Vector2 offset = tile.GetComponent <SpriteRenderer>().bounds.size; CreateBoard(offset.x, offset.y); }
void Start() { M3S = GameObject.Find("Match3Manager").GetComponent <Match3Script>(); cam = GameObject.Find("Main Camera").GetComponent <Camera>(); }