| 123456789101112131415161718192021222324252627282930313233 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class FireBallShot : SpecialSkills
- {
- [Header("弓箭预制体")]
- public GameObject arrow;
- [Header("齐发参数")]
- public int num;
- public float angle;
- public float arrivalAngle;
- public int damage;
- public bool tryy;
- public float gravity = 9.8f; // 重力加速度
- public float speed;
- public override void Attack()
- {
- base.Attack();
- Shoot();
- }
- public void Shoot()
- {
- GameObject obj = PoolManager.Instantiate(arrow);
- obj.GetComponent<Bullet>().BeShoot(owner);
- FireBallController fireBallController = obj.GetComponent<FireBallController>();
- fireBallController.Launch(owner.targetCharacter.transform,transform.position + Vector3.up, 10);
- }
-
- }
|