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); }
public void Reset() { OnHitDo = null; }