Exemple #1
0
 private void Awake()
 {
     if (Instance == null)
     {
         Instance = this;
     }
     else
     {
         Destroy(gameObject);
     }
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     ChipFactory  = ChipFactory.Instance;
     CupFactory   = CupFactory.Instance;
     InputManager = InputManager.Instance;
 }