Пример #1
0
 public void Awake()
 {
     Instance             = this;
     m_FinishedBoardCount = 0;
     m_AudioSource        = GetComponent <AudioSource>();
     m_CurrentBoard       = FindObjectOfType <NailBoardComponent>();
 }
Пример #2
0
 private void SpawnBoard()
 {
     m_CurrentBoard = Instantiate(m_BoardPrefab, m_BoardSpawnPosition.position, Quaternion.identity);
     m_CurrentBoard.SpawnBoard(m_BoardNailPosition.position);
 }