Beispiel #1
0
	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);
	}
Beispiel #2
0
	public void Reset()
	{
		OnHitDo = null;
	}