Ejemplo n.º 1
0
        public void SetParam(MainGameScore score, float time)
        {
            UnitDestroy.SetParam(1, 0, (int)score.DestroyEnemyPoint);
            int timeValue = (int)Math.Ceiling(time);

            UnitTime.SetParam(timeValue, (int)score.TimeBonusRatio, (int)(timeValue * score.TimeBonusRatio));
            UnitChain.SetParam(score.ChainNumMax, (int)score.ChainBonusRatio, (int)(score.ChainNumMax * score.ChainBonusRatio));
        }
Ejemplo n.º 2
0
        protected override void Awake()
        {
            base.Awake();
            GUIManager = GetComponent <MainGameGUIManager>();
            GameScore  = GetComponent <MainGameScore>();

//            ResultGUI = FindObjectOfType<ResultGUIManager>();
            Debug.Assert(ResultGUI != null);
            ResultGUI.SetVisible(true);

            PlayerCtrl = FindObjectOfType <PlayerController>();
            EnemyCtrl  = FindObjectOfType <EnemyController>();

            Debug.Assert(PlayerCtrl != null);
            Debug.Assert(EnemyCtrl != null);
        }