private float shrinkFactor = 0.6f; // 1 is normal, 0.6 when pressed void Start() { rend = GetComponent <Renderer>(); tintScale = 1f; // set ref of CreatePuzzle CreatePuzzle = GameObject.Find("_LevelManager").GetComponent <CreatePuzzle>(); cellSize = CreatePuzzle.getCellSize(); // get cell size }
private void Start() { CreatePuzzle = GameObject.Find("_LevelManager").GetComponent <CreatePuzzle>(); AlertScript = GameObject.Find("_SceneManager").GetComponent <AlertScript>(); }
void Start() { CreatePuzzle = GameObject.Find("_LevelManager").GetComponent <CreatePuzzle>(); }