コード例 #1
0
 void Start()
 {
     uiMathTable    = GameController.instance.endlessUICanvas.GetComponentInChildren <UIMathTable>();
     uiLevelCounter = GameController.instance.endlessUICanvas.transform.Find("StaticLvLText/CurrentLevelText").GetComponent <Text>();
     uiLifeBar      = GameController.instance.endlessUICanvas.GetComponentInChildren <UILifeBar>();
     uICountDown    = GameController.instance.endlessUICanvas.GetComponentInChildren <UICountDown>();
 }
コード例 #2
0
    // Start is called before the first frame update
    void Start()
    {
        Countdown = GetComponent <UICountDown>();

        Countdown.CountdownStartTime = ClientPlayerManager.singleton.RespawnTime;
        Countdown.StartCountdown();
    }
コード例 #3
0
    private void GvrReticlePointer_OnPointerEnterEvent(RaycastResult raycastResult)
    {
        raycastResultObj = null;
        mEnterTime       = Time.time;
        MaterialComp.SetFloat("_FillAmount", 0);
        manger = 0;
        //EventExcuted = false;
        EventExcuteCount = 0;
        GvrPointerInputModule module = EventSystem.current.currentInputModule as GvrPointerInputModule;
        GameObject            click  = module.EventExecutor.GetEventHandler <IPointerClickHandler>(raycastResult.gameObject);

        if (click)
        {
            bool       canOperation = false;
            Selectable selectable   = click.GetComponent <Selectable>();
            if (selectable != null)
            {
                if (selectable.interactable)
                {
                    canOperation = true;
                }
            }
            else
            {
                canOperation = true;
            }
            if (canOperation)
            {
                raycastResultObj = click;
                UICountDown mUICountDown = click.GetComponent <UICountDown>();
                if (mUICountDown != null)
                {
                    mTargetTime  = mUICountDown.Count;
                    mIsContitnue = mUICountDown.Continue;
                }
                else
                {
                    mTargetTime = DEFALUTCOUNT;
                }
            }
        }
    }
コード例 #4
0
 void Awake()
 {
     sharedInstance = this;
 }
コード例 #5
0
 void Start()
 {
     MyInstance = this;
 }