Beispiel #1
0
 private void Start()
 {
     joybutton             = FindObjectOfType <JoyButtonAction> ();
     fade                  = FadeAnimation.current;
     blockLimitDialog      = "Blocos insuficientes para este desafio";
     puzzleCompletedDialog = "Desafio concluido";
 }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     joybutton = FindObjectOfType <JoyButtonAction>();
     anim      = GetComponent <Animator>();
     isOpen    = storedOpen.runtimeValue;
     if (isOpen)
     {
         anim.SetBool("opened", true);
     }
 }
Beispiel #3
0
 // Start is called before the first frame update
 void Start()
 {
     joybutton       = FindObjectOfType <JoyButtonAction>();
     moveTimeSeconds = Random.Range(minMoveTime, maxMoveTime);
     waitTimeSeconds = Random.Range(minWaitTime, maxWaitTime);
     anim            = GetComponent <Animator>();
     myTransform     = GetComponent <Transform>();
     myRigidbody     = GetComponent <Rigidbody2D>();
     ChangeDirection();
 }
Beispiel #4
0
 void Start()
 {
     joybutton    = FindObjectOfType <JoyButtonAction> ();
     wasCollected = storedCollected.runtimeValue;
     // Instancia se o bloco não tiver sido coletado
     if (!wasCollected)
     {
         this.gameObject.SetActive(true);
         bc.enabled = true;
     }
     else
     {
         this.gameObject.SetActive(false);
     }
 }
Beispiel #5
0
 // Start is called before the first frame update
 void Start()
 {
     joybutton   = FindObjectOfType <JoyButtonAction>();
     myTransform = GetComponent <Transform>();
     myRigidbody = GetComponent <Rigidbody2D>();
 }
Beispiel #6
0
 // Start is called before the first frame update
 void Start()
 {
     joybutton = FindObjectOfType <JoyButtonAction>();
 }