コード例 #1
0
 private void Awake()
 {
     if (Instance != null)
     {
         Destroy(gameObject);
     }
     else
     {
         Instance = this;
     }
 }
コード例 #2
0
        private void Start()
        {
            lives              = availableLives;
            ballManager        = HawkBallsManager.Instance;
            brickManager       = HawkBrickManager.Instance;
            collectableManager = HawkCollectableManager.Instance;

            Screen.SetResolution(540, 900, false);
            HawkBall.onDeath             += onDeath;
            HawkBrick.onBrickDestruction += brickDestruction;
        }
コード例 #3
0
ファイル: HawkMultiball.cs プロジェクト: vlm121612071227/GMG
 private void Start()
 {
     ballManager = HawkBallsManager.Instance;
 }
コード例 #4
0
 // Start is called before the first frame update
 void Start()
 {
     ballRigidBody2D = GetComponent <Rigidbody2D>();
     gameManager     = HawkGameManger.Instance;
     ballManager     = HawkBallsManager.Instance;
 }
コード例 #5
0
 // Start is called before the first frame update
 private void Start()
 {
     paddle      = GetComponent <Rigidbody2D>();
     ballManager = HawkBallsManager.Instance;
 }