Esempio n. 1
0
 public void ShowDoubleHitUI()
 {
     if (doubleHitUI == null)
     {
         doubleHitUI = CreatObjectToNGUI.InstantiateObj(DoubleHitTipsPrefab, BottomRight).GetComponent <DoubleHitUI>();
     }
 }
Esempio n. 2
0
        void Awake()
        {
//
//            Combo_CD_animator=Go_Combo_CD_animator.GetComponent<Animator>();
//            Combo_Txt_animator=Go_Combo_Txt_animator.GetComponent<Animator>();
//            ComCombo_Num_animator=Go_ComCombo_Num_animator.GetComponent<Animator>();
//            Combo_KillTxt_animator=Go_Combo_KillTxt_animator.GetComponent<Animator>();
//            Combo_KillNum_animator=Go_Combo_KillNum_animator.GetComponent<Animator>();
            if (CommonDefineManager.Instance != null)
            {
                DefaultTime = CommonDefineManager.Instance.CommonDefine.COMBO_TIME;
            }
            m_instance = this;
            UIEventManager.Instance.RegisterUIEvent(UIEventType.DoubleHitUI, ChangeHitCount);
            UIEventManager.Instance.RegisterUIEvent(UIEventType.DoubleKillUI, ChangeKillCount);
            //transform.localPosition = GameManager.Instance.UseJoyStick ? JoystickStatusPosition : NormalStatusPosition;
        }
Esempio n. 3
0
 void OnDestroy()
 {
     m_instance = null;
     UIEventManager.Instance.RemoveUIEventHandel(UIEventType.DoubleHitUI, ChangeHitCount);
     UIEventManager.Instance.RemoveUIEventHandel(UIEventType.DoubleKillUI, ChangeKillCount);
 }