void Start() { //TODO: Fix this when we get to multi-piece puzzles puzzleSections = GetComponents <PolygonCollider2D>().ToList(); pieceSet = Instantiate(pieceSetPrefab).GetComponent <PieceSet>(); pieceSet.transform.SetParent(this.transform); TangramsSupervisor.GetInstance().DragController.PieceSet = pieceSet; }
void Update() { if (!Input.GetMouseButton(0) && !isSolved) { isSolved = CheckIsSolved(); if (isSolved) { ShowOutlines(); Data.GetInstance().SetSolved(PuzzleName); TangramsSupervisor.GetInstance().SetSolved(this); } } }
void Awake() { instance = this; PlayerPrefs.DeleteAll(); }