public void Init() { this.UserTransform = GameObject.FindGameObjectWithTag(UserSelectorTag).transform; this.EnemyTansform = GameObject.FindGameObjectWithTag(EnemySelectorTag).transform; this.UserTransformAnimator = UserTransform.GetComponent <Animator>(); this.user = new Selector( target: this.UserTransform, step: GameElementConstants.minSpeedBar, downClamp: this.minSelectorAngle, upClamp: this.maxSelectorAngle); this.uiManager = UI.Behaviours.GamePlay.GamePlayManager.Instance; this.uiManager.gamePlay.TapScreen.TapEvent += CheckMatch; this.zigZag = new ZigZag( lowerClamp: this.minSelectorAngle, upperClamp: this.maxSelectorAngle, divisions: this.SelectorDivisions); this.enemyS = new EnemySelector(GameObject.FindGameObjectWithTag(EnemySelectorTag)); this.enemyS.Init(); }
public RitualHud(float ritualAmount) { this.uiManager = UI.Behaviours.GamePlay.GamePlayManager.Instance; this.maxAmount = ritualAmount; FindRitualElement(); ResetRitualAmount(); }
void Init() { this.uiManager = UI.Behaviours.GamePlay.GamePlayManager.Instance; this.textCountGameOver = this.uiManager.gamePlay.GameOverScreen.SacrificeCount; this.textCountGamePlay = this.uiManager.gamePlay.HUDScreen.Score; this.textCountGamePlay.text = "0"; }
public void Initialize() { //Get Singletons; this.gamePlay = GamePlayTime.Instance; this.UIManager = UI.Behaviours.GamePlay.GamePlayManager.Instance; this.playerManager = PlayerManager.Instance; //instantiate player this.playerManager.InstantiatePlayer(); //initialize UI this.UIManager.Init(); this.UIManager.gamePlay.WelcomeScreen.Init(this.UIManager.gamePlay.TapScreen.TapEvent); }
public void Awake() { this.manager = GamePlayManager.Instance; this.manager.gamePlay = this; }
public void Init(Action Event) { this.manager = GamePlayManager.Instance; this.manager.gamePlay.TapScreen.TapEvent += Count; }