This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[DisallowMultipleComponent] | |
public class Oscillator : MonoBehaviour | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class Rocket : MonoBehaviour | |
{ | |
Rigidbody rigidBody; | |
AudioSource audioSource; | |
enum State { Alive, Dying, Transcending } // aqui eu criei 3 estados diferentes (enumerei estes 3 estados pra eles passarem a existir) |