private void Start() { managerScript = GameObject.Find("PuzzleManager").GetComponent <PuzzleManagerScript>(); image = gameObject.GetComponent <Image>(); image.color = notSelectedColor; }
private void Awake() { manager = GameObject.Find("PuzzleManager"); script = manager.GetComponent <PuzzleManagerScript>(); moves = GetComponent <Text>(); }