public void ChangeState(SushiState state) { this.currentState = state; }
void Start() { audioSource = GetComponent<AudioSource> (); ribo = GetComponent<Rigidbody>(); locomotion = GetComponent<Locomotion>(); bodyAnimation = GetComponent<BodyAnimation>(); emotion = GetComponent <SushiEmotion> (); currentState = SushiState.ALIVE; Invoke ("GenerateCheeringSound", Random.Range(1,10)); MakeSound("spawning"); }