コード例 #1
0
ファイル: GameplayManager.cs プロジェクト: Kimmosz/Yahtzee
 private void Start()
 {
     // Get instances and start new turn
     audioManager = AudioManager.Instance;
     scoreblock   = Scoreblock.Instance;
     menuManager  = MenuManager.Instance;
     NewTurn();
 }
コード例 #2
0
 private void Awake()
 {
     // Instance set up
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }