Exemplo n.º 1
0
 private void Start()
 {
     blockAudio            = GetComponent <BlockAudio>();
     currentLevel          = transform.parent.gameObject;
     currentLevelScript    = currentLevel.GetComponent <Level>();
     blockInGoal           = false;
     destroyAnimationDelay = 0.5f;
 }
Exemplo n.º 2
0
    private void Start()
    {
        block_audio = GetComponentInChildren<BlockAudio>();
        rb = GetComponent<Rigidbody>();
        mesh = GetComponent<MeshRenderer>();

        color_initial = mesh.material.color;
        color = color_initial;
    }