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