Example #1
0
 private void Awake()
 {
     mobileInput     = FindObjectOfType <MobileInput>();
     ballsController = FindObjectOfType <BallsController>();
     blockContainer  = FindObjectOfType <BlockContainer>();
     ballsPreview.gameObject.SetActive(false);
 }
Example #2
0
 internal static void Init(ScoreObjectController scoreObjectController, int initBallsCount)
 {
     GameScoreController   = new GameScoreController();
     ScoreTaskController   = new ScoreTaskController();
     BallsController       = new BallsController(initBallsCount);
     ScoreObjectController = scoreObjectController;
 }
Example #3
0
 internal static void Dispose()
 {
     GameScoreController   = null;
     ScoreTaskController   = null;
     BallsController       = null;
     ScoreObjectController = null;
 }
Example #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>();
 }
Example #6
0
 private void Awake()
 {
     mobileInput     = GetComponent <MobileInput>();
     ballsController = FindObjectOfType <BallsController>();
 }
Example #7
0
 private void Awake()
 {
     rigid           = GetComponent <Rigidbody2D>();
     ballsController = FindObjectOfType <BallsController>();
 }
Example #8
0
 private void Awake()
 {
     ballsController = FindObjectOfType <BallsController>();
     hpText          = GetComponent <TextMeshPro>();
 }