public void Dispose() { Agk.Delete3DPhysicsRay(ResourceNumber); Agk.DeleteVector3(FromVectorNumber); Agk.DeleteVector3(ToVectorNumber); Agk.DeleteVector3(HitVectorNumber); this.Dispose(); }