Exemplo n.º 1
0
    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;
    }
Exemplo n.º 2
0
 void Update()
 {
     if (!Input.GetMouseButton(0) && !isSolved)
     {
         isSolved = CheckIsSolved();
         if (isSolved)
         {
             ShowOutlines();
             Data.GetInstance().SetSolved(PuzzleName);
             TangramsSupervisor.GetInstance().SetSolved(this);
         }
     }
 }
Exemplo n.º 3
0
 void Awake()
 {
     instance = this;
     PlayerPrefs.DeleteAll();
 }