示例#1
0
 // 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;
     }
 }
示例#3
0
 // 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));
     }
 }
示例#5
0
    //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;
 }