Exemple #1
0
    public override void ReleaseSpell()
    {
        GameObject hurricane = poolManager.GetGameObject("Hurricane");
        Hurricane  a         = hurricane.GetComponent <Hurricane>();

        a.SetThrower(player);

        //根据风瞄准镜设置生成位置
        a.SetStartPosition(windAbility.GetSightHeadPosition());
    }
Exemple #2
0
    public void ReleaseCast()
    {
        GameObject windArrow = poolManager.GetGameObject("WindArrow");
        WindArrow  a         = windArrow.GetComponent <WindArrow>();

        a.SetThrower(player);

        //根据风瞄准镜设置生成位置
        flyingStartPositon.y = player.transform.position.y;
        flyingStartPositon.x = player.transform.position.x + 1.0f * player.transform.localScale.x;
        a.SetStartPosition(flyingStartPositon);

        //设置方向
        a.SetDirection(windAbility.GetSightHeadPosition());
    }