void Start() { _rb = GetComponent <Rigidbody2D>(); _characterCollision = GetComponent <CharacterCollision_script>(); _effectMananger = _characterCollision._gameController.GetComponent <EffectMananger_script>(); _currentMoveSpeed = MoveSpeed; _currentJumpForce = -GravityPower; }
void Awake() { _uiManager = GetComponent <UIManager_script>(); _objectPlacerMananger = GetComponent <ObjectPlacerMananger_script>(); _scoreManager = GetComponent <ScoreManager_script>(); _effectMananger = GetComponent <EffectMananger_script>(); Player.Config(this); Player.gameObject.SetActive(false); }
void Start() { _uiManager = GetComponent <UIManager_script>(); _scoreManager = GetComponent <ScoreManager_script>(); _gameController = GetComponent <GameController_script>(); _effectMananger = GetComponent <EffectMananger_script>(); _uiManager.SetUpButtons(Objects); _placedObjects = new List <GameObject>(); }
void Awake() { _objectPlacerMananger = GetComponent <ObjectPlacerMananger_script>(); _objectPreviewer = _objectPlacerMananger.ObjectPreviewer; _removalToolButton = ObjectUI.transform.GetChild(1).GetChild(4).GetComponent <Button>(); _removalToolButtonImage = _removalToolButton.GetComponent <Image>(); _startButton = ObjectUI.transform.GetChild(1).GetChild(5).GetComponent <Button>(); _gameControllerScript = GetComponent <GameController_script>(); _gameoverTitleText = GameOverScreen.transform.GetChild(1).GetComponent <TextMeshProUGUI>(); _gameoverText = GameOverScreen.transform.GetChild(2).GetComponent <TextMeshProUGUI>(); _scoreManager = GetComponent <ScoreManager_script>(); _placementScoreText = ObjectUI.transform.GetChild(2).GetComponent <TextMeshProUGUI>(); _levelScoreText = GameOverScreen.transform.GetChild(3).GetComponentsInChildren <TextMeshProUGUI>(); _levelScoreTotalText = GameOverScreen.transform.GetChild(5).GetComponent <TextMeshProUGUI>(); _effectMananger = GetComponent <EffectMananger_script>(); GameOverScreen.SetActive(false); _musicToggle = StartScreen.transform.GetChild(1).GetChild(2).GetChild(0).GetComponent <Toggle>(); _sfxToggle = StartScreen.transform.GetChild(1).GetChild(2).GetChild(1).GetComponent <Toggle>(); _highScoreScreenText = StartScreen.transform.GetChild(2).GetChild(1).GetComponentsInChildren <TextMeshProUGUI>(); _highScoreScreenTotalText = StartScreen.transform.GetChild(2).GetChild(2).GetComponent <TextMeshProUGUI>(); StartScreen.SetActive(true); SetHighScoreScreenText(); }
void Start() { _characterMovement = GetComponent <CharacterMovement_script>(); _effectMananger = _gameController.GetComponent <EffectMananger_script>(); }