private void Start() { joybutton = FindObjectOfType <JoyButtonAction> (); fade = FadeAnimation.current; blockLimitDialog = "Blocos insuficientes para este desafio"; puzzleCompletedDialog = "Desafio concluido"; }
// 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); } }
// 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(); }
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); } }
// Start is called before the first frame update void Start() { joybutton = FindObjectOfType <JoyButtonAction>(); myTransform = GetComponent <Transform>(); myRigidbody = GetComponent <Rigidbody2D>(); }
// Start is called before the first frame update void Start() { joybutton = FindObjectOfType <JoyButtonAction>(); }