Esempio n. 1
0
 public void ChangeState(SushiState state)
 {
     this.currentState = state;
 }
Esempio n. 2
0
    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");
    }