Exemple #1
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         instance = this;
     }
 }
Exemple #2
0
 private void Start()
 {
     gameManager = HawkGameManger.Instance;
     paddle      = HawkPaddle.Instance;
     InitBall();
 }