private void Start()
    {
        managerScript = GameObject.Find("PuzzleManager").GetComponent <PuzzleManagerScript>();

        image = gameObject.GetComponent <Image>();

        image.color = notSelectedColor;
    }
示例#2
0
 private void Awake()
 {
     manager = GameObject.Find("PuzzleManager");
     script  = manager.GetComponent <PuzzleManagerScript>();
     moves   = GetComponent <Text>();
 }