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>(); }
// Start is called before the first frame update void Start() { Countdown = GetComponent <UICountDown>(); Countdown.CountdownStartTime = ClientPlayerManager.singleton.RespawnTime; Countdown.StartCountdown(); }
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; } } } }
void Awake() { sharedInstance = this; }
void Start() { MyInstance = this; }