Exemplo n.º 1
0
    void Shoot()
    {
        //1 총알을 생성
        GameObject go    = Instantiate(arrowPrefab, arrowPoint.position, Quaternion.identity);
        Arrow_A    arrow = go.GetComponent <Arrow_A> ();

        //2 화살에게 타겟 정보를 보낸다
        arrow.TargetSetter(target);
    }
Exemplo n.º 2
0
    void Shoot()
    {
        //1 총알을 생성
        GameObject go = Instantiate(bulletPrefab, bulletPoint.position, Quaternion.identity);
        //애로우인데 어떤 애로우냐? 프리팹에 들어있는 애로우cs이다
        Arrow_A bullet = go.GetComponent <Arrow_A> ();

        //2 화살에게 타겟 정보를 보낸다
        bullet.TargetSetter(target);
    }
Exemplo n.º 3
0
    void Shoot()
    {
        //1 총알을 생성
        GameObject go = Instantiate(arrowPrefab, arrowPoint.position, Quaternion.identity);
        //애로우인데 어떤 애로우냐? 프리팹에 들어있는 애로우cs이다
        Arrow_A arrow = go.GetComponent <Arrow_A> ();

        //2 화살에게 타겟 정보를 보낸다
        arrow.TargetSetter(target);
        GetFeverPoint();
    }