示例#1
0
文件: FakeBullet.cs 项目: fengqk/Art
	public void FlyToTartget(Vector3 from, Transform target, float speed = 4, FakeBulletEventHandler onHitDo = null)
	{
		this.from = from;
		myT.position = from;
		this.target = target;
		this.speed = speed;
		this.OnHitDo = onHitDo;
		myT.LookAt(target.position, Vector3.up);
	}
示例#2
0
文件: FakeBullet.cs 项目: fengqk/Art
	public void Reset()
	{
		OnHitDo = null;
	}