예제 #1
0
    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();
    }
예제 #2
0
    public RitualHud(float ritualAmount)
    {
        this.uiManager = UI.Behaviours.GamePlay.GamePlayManager.Instance;

        this.maxAmount = ritualAmount;
        FindRitualElement();
        ResetRitualAmount();
    }
예제 #3
0
    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";
    }
예제 #4
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);
    }
예제 #5
0
        public void Awake()
        {
            this.manager = GamePlayManager.Instance;

            this.manager.gamePlay = this;
        }
예제 #6
0
 public void Init(Action Event)
 {
     this.manager = GamePlayManager.Instance;
     this.manager.gamePlay.TapScreen.TapEvent += Count;
 }