void ReleaseHell()
    {
        audioSrc.PlayOneShot(flameThrowerSound);
        GameObject             ft       = Instantiate(flameThrowerPrefab, fireSource.transform.position, transform.rotation);
        FlameThrowerController ftScript = ft.GetComponent <FlameThrowerController>();

        ftScript.source     = fireSource;
        ftScript.sourceBody = gameObject.transform;
        Destroy(ft, 5);
        isAttacking = true;
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     contr = GetComponent <FlameThrowerController>();
     anim  = GetComponentInChildren <Animator>();
 }