Exemple #1
0
 void Start()
 {
     bm           = FindObjectOfType <BoardManager>();
     gntp         = GetComponentInParent <GroupNoteToPlace>();
     actualSprite = GetComponent <SpriteRenderer>();
     if (!isLoading)
     {
         updateId(Random.Range(1, 5));
     }
 }
Exemple #2
0
 private void spawnTutorialPiece(int pos)
 {
     activeGroup       = Instantiate(tutorialPrefabs[pos], transform.position, Quaternion.identity);
     activeGroupScript = activeGroup.GetComponent <GroupNoteToPlace>();
     canTutorialChange = true;
 }