Exemplo n.º 1
0
    public virtual void Bow_Attack()
    {
        GameObject arrowInstance = Instantiate(arrow, new Vector3(transform.position.x, transform.position.y + 0.9f, transform.position.z), Quaternion.identity);
        Аrrow      arrowScript   = arrowInstance.GetComponent <Аrrow> ();

        arrowScript.SetDirection(unit.direction);
    }
Exemplo n.º 2
0
    //Выпустить стрелу
    public void CreateArrow()
    {
        GameObject arrowInstance = Instantiate(arrow, new Vector3(transform.position.x, transform.position.y + 0.9f, transform.position.z), Quaternion.identity);
        Аrrow      arrowScript   = arrowInstance.GetComponent <Аrrow> ();

        arrowScript.SetDirection(direction);
    }