コード例 #1
0
    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
    }
コード例 #2
0
 private void Start()
 {
     CreatePuzzle = GameObject.Find("_LevelManager").GetComponent <CreatePuzzle>();
     AlertScript  = GameObject.Find("_SceneManager").GetComponent <AlertScript>();
 }
コード例 #3
0
 void Start()
 {
     CreatePuzzle = GameObject.Find("_LevelManager").GetComponent <CreatePuzzle>();
 }