// Use this for initialization
    void Start()
    {
        INSTANCE    = this;
        m_state     = CaptainState.Idle;
        m_animation = GetComponentInChildren <Animation>();

        //setup cutscene anim list
        m_cutsceneAnims = new ArrayList();
        m_cutsceneAnims.Add("taunt");
        m_cutsceneAnims.Add("launch");
        m_cutsceneAnims.Add("angryidle_0");
        m_cutsceneAnims.Add("fire");

        //setup angry anim list
        m_angryAnims = new ArrayList();
        m_angryAnims.Add("taunt");
        m_angryAnims.Add("angryidle_0");
        m_angryAnims.Add("stagger");
        m_angryAnims.Add("facepalm");
        m_angryAnims.Add("launch");
        m_angryAnims.Add("fire");

        m_lastKnownIdle = "";

        m_audio = GetComponent <AudioSource>();
    }
 public void StartCutScene()
 {
     if (!m_playedCutscene)
     {
         m_playedCutscene = true;
         m_state          = CaptainState.Cutscene;
         m_lastKnownIdle  = m_cutsceneAnims[0] as string;
         if (!m_audio.isPlaying)
         {
             m_audio.clip = RingBell;
             m_audio.Play();
             m_audio.loop = false;
         }
     }
 }
 public void StartCutScene()
 {
     if(!m_playedCutscene)
     {
         m_playedCutscene = true;
         m_state = CaptainState.Cutscene;
         m_lastKnownIdle = m_cutsceneAnims[0] as string;
         if (!m_audio.isPlaying)
         {
             m_audio.clip = RingBell;
             m_audio.Play();
             m_audio.loop = false;
         }
     }
 }
 public void EndCutScene()
 {
     m_state         = CaptainState.Angry;
     m_lastKnownIdle = m_angryAnims[0] as string;
 }
 public void EndCutScene()
 {
     m_state = CaptainState.Angry;
     m_lastKnownIdle = m_angryAnims[0] as string;
 }
    // Use this for initialization
    void Start()
    {
        INSTANCE = this;
        m_state = CaptainState.Idle;
        m_animation = GetComponentInChildren<Animation>();

        //setup cutscene anim list
        m_cutsceneAnims = new ArrayList();
        m_cutsceneAnims.Add("taunt");
        m_cutsceneAnims.Add("launch");
        m_cutsceneAnims.Add("angryidle_0");
        m_cutsceneAnims.Add("fire");

        //setup angry anim list
        m_angryAnims = new ArrayList();
        m_angryAnims.Add("taunt");
        m_angryAnims.Add("angryidle_0");
        m_angryAnims.Add("stagger");
        m_angryAnims.Add("facepalm");
        m_angryAnims.Add("launch");
        m_angryAnims.Add("fire");

        m_lastKnownIdle = "";

        m_audio = GetComponent<AudioSource>();
    }