// Use this for initialization void Start() { if (ui_timer == null) { ui_timer = this; } }
private void Start() { if (ui_timer == null) { ui_timer = UI_Timer.ui_timer; } }
// Use this for initialization void Start() { PlayerPrefs.DeleteAll(); text = GetComponent <Text>(); scoreKeeperLeft = FindObjectOfType <ScoreKeeperLeft>(); uI_Timer = FindObjectOfType <UI_Timer>(); text.text = ""; }
private void Update() { if (ui_timer == null) { ui_timer = UI_Timer.ui_timer; } if (ui_timer != null) { raw_seconds -= Time.deltaTime; int minutes = Seconds_To_Minutes(); int seconds = Seconds_To_Seconds(minutes); ui_timer.Set_Time(Time_String(minutes, seconds)); } }
//private float healthPoints = 1.00f; void Start() { rb = GetComponent <Rigidbody>(); //jeżeli jest RigidBody uzyska dostęp //playerVelocity = rb.velocity.magnitude; startPosition = this.transform.position; alive = true; timerIncrease = false; winner = false; //CounterControl(); //LifeCounter(); timer = uimanager.GetComponent <UI_Timer>(); //acceleration = (rb.velocity - lastVelocity) / Time.fixedDeltaTime; //lastVelocity = rb.velocity; }
// Use this for initialization void Start() { ui_timer = UI_Timer.ui_timer; }