Exemplo n.º 1
0
 private void methodTrigger(AnimatorTimer aTimer)
 {
     Debug.Log("iniciando metodo");
     aTimer.runMethod();
     Debug.Log("metodo ejecutado");
     aTimer.methodTrigger -= methodTrigger;
 }
Exemplo n.º 2
0
 private void methodTrigger(AnimatorTimer aTimer)
 {
     Debug.Log("iniciando metodo");
     aTimer.runMethod();
     Debug.Log("metodo ejecutado");
     aTimer.methodTrigger -= methodTrigger;
 }
Exemplo n.º 3
0
    public void StartTimerCoroutine(float time, MethodAfterTime method)
    {
        AnimatorTimer aTimer = new AnimatorTimer(time, method);

        aTimer.methodTrigger += methodTrigger;
        aTimer.runMethodAfterTime();
    }
Exemplo n.º 4
0
 public void StartTimerCoroutine(float time, MethodAfterTime method)
 {
     AnimatorTimer aTimer = new AnimatorTimer(time, method);
     aTimer.methodTrigger += methodTrigger;
     aTimer.runMethodAfterTime();
 }
Exemplo n.º 5
0
 // Start is called before the first frame update
 void Start()
 {
     barra       = bar.GetComponent <Barra>();
     controlAnim = GetComponent <AnimatorTimer>();
 }