Пример #1
0
 void Finish()
 {
     countDownState = CountdownStateEnum.Finished;
     if (TimerFinishEvent != null)
     {
         TimerFinishEvent(this, null);
     }
 }
Пример #2
0
	public void ResetCountdown(CountdownStateEnum inState)
	{	
		switch(inState)
		{
			case CountdownStateEnum.Paused:
			case CountdownStateEnum.Countdown:
				RemainingTime = CountdownTime;	
				break;
			case CountdownStateEnum.Relaxing:
				RemainingTime = Mathf.Min(RemainingTime, CountdownTime);
				break;
			case CountdownStateEnum.Finished:
				break;
		}
		countDownState = inState;
	}	
Пример #3
0
    public void ResetCountdown(CountdownStateEnum inState)
    {
        switch (inState)
        {
        case CountdownStateEnum.Paused:
        case CountdownStateEnum.Countdown:
            RemainingTime = CountdownTime;
            break;

        case CountdownStateEnum.Relaxing:
            RemainingTime = Mathf.Min(RemainingTime, CountdownTime);
            break;

        case CountdownStateEnum.Finished:
            break;
        }
        countDownState = inState;
    }
Пример #4
0
	public void StartCountdown(float inTime)
	{
		CountdownTime = inTime;
		RemainingTime = inTime;
		countDownState = CountdownStateEnum.Countdown;
	}
Пример #5
0
	public void StartCountdown()
	{
		countDownState = CountdownStateEnum.Countdown;
	}
Пример #6
0
	void Finish()
	{
		countDownState = CountdownStateEnum.Finished;
		if (TimerFinishEvent != null) TimerFinishEvent(this, null);
	}
Пример #7
0
	void Start()
	{
		countDownState = StartActive ? CountdownStateEnum.Countdown : CountdownStateEnum.Paused;
		RemainingTime = CountdownTime;
	}
Пример #8
0
 public void StartCountdown(float inTime)
 {
     CountdownTime  = inTime;
     RemainingTime  = inTime;
     countDownState = CountdownStateEnum.Countdown;
 }
Пример #9
0
 public void StartCountdown()
 {
     countDownState = CountdownStateEnum.Countdown;
 }
Пример #10
0
 void Start()
 {
     countDownState = StartActive ? CountdownStateEnum.Countdown : CountdownStateEnum.Paused;
     RemainingTime  = CountdownTime;
 }