Beispiel #1
0
 private void Awake()
 {
     mobileInput     = FindObjectOfType <MobileInput>();
     ballsController = FindObjectOfType <BallsController>();
     blockContainer  = FindObjectOfType <BlockContainer>();
     ballsPreview.gameObject.SetActive(false);
 }
Beispiel #2
0
 internal static void Init(ScoreObjectController scoreObjectController, int initBallsCount)
 {
     GameScoreController   = new GameScoreController();
     ScoreTaskController   = new ScoreTaskController();
     BallsController       = new BallsController(initBallsCount);
     ScoreObjectController = scoreObjectController;
 }
Beispiel #3
0
 internal static void Dispose()
 {
     GameScoreController   = null;
     ScoreTaskController   = null;
     BallsController       = null;
     ScoreObjectController = null;
 }
Beispiel #4
0
    //public int amountBalls = 1;
    //private int ammountBallsLeft;
    //private int score;

    private void Start()
    {
        ballsController = FindObjectOfType <BallsController>();
        rigid           = GetComponent <Rigidbody2D>();
        ballsPreview.parent.gameObject.SetActive(false);
        //ammountBallsLeft = amountBalls;
        //UpdateText();
        BlockContainer.Instance.GenerateNewRow();
    }
 private void Awake()
 {
     ballsController = FindObjectOfType <BallsController>();
 }
Beispiel #6
0
 private void Awake()
 {
     mobileInput     = GetComponent <MobileInput>();
     ballsController = FindObjectOfType <BallsController>();
 }
Beispiel #7
0
 private void Awake()
 {
     rigid           = GetComponent <Rigidbody2D>();
     ballsController = FindObjectOfType <BallsController>();
 }
Beispiel #8
0
 private void Awake()
 {
     ballsController = FindObjectOfType <BallsController>();
     hpText          = GetComponent <TextMeshPro>();
 }