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