Exemple #1
0
 // Use this for initialization
 void Start()
 {
     CurrState   = ChangeStates.goDim;
     theCanvas   = transform.FindDeepChild("Canvas").gameObject;
     offset      = transform.position;
     lastRoutine = null;
 }
Exemple #2
0
 void OnExit()
 {
     CurrState = ChangeStates.goDim;
     if (lastRoutine == null)
     {
         lastRoutine = StartCoroutine(BufferWait());
     }
 }
Exemple #3
0
 void OnTrack()
 {
     if (lastRoutine != null)
     {
         StopCoroutine(lastRoutine);
         lastRoutine = null;
         waiting     = false;
     }
     CurrState = ChangeStates.goSolid;
 }
Exemple #4
0
 public virtual void ChangeState(User user, IssueState state)
 {
     if (State != state)
     {
         ChangeStates.Add(new ChangeState()
         {
             CreatedAt = DateTime.Now, IssueState = state, User = user, Issue = this
         });
     }
 }
Exemple #5
0
 void OnHover()
 {
     Debug.Log("OnHover is called");
     if (lastRoutine != null)
     {
         StopCoroutine(lastRoutine);
         lastRoutine = null;
         waiting     = false;
     }
     CurrState = ChangeStates.goSolid;
 }
Exemple #6
0
 void LostTrack()
 {
     CurrState   = ChangeStates.goDim;
     lastRoutine = StartCoroutine(BufferWait());
 }
 void OnLost()
 {
     Debug.Log("The object " + gameObject.name + "is lost. ");
     CurrState = ChangeStates.goDim;
 }
 void OnTrack()
 {
     Debug.Log("The object " + gameObject.name + "is tracked. ");
     CurrState = ChangeStates.goSolid;
 }
 // Use this for initialization
 void Start()
 {
     CurrState = ChangeStates.goDim;
 }