RaycastReceiver.re.ts 388 B

12345678910111213
  1. import * as RE from 'rogue-engine';
  2. export default class RaycastReceiver extends RE.Component {
  3. onMouseOver(intersect):boolean {
  4. throw new Error("Abstract class: Please inherit from this class to use it's behavior")
  5. }
  6. onMouseOut():boolean{
  7. throw new Error("Abstract class: Please inherit from this class to use it's behavior")
  8. }
  9. }
  10. RE.registerComponent(RaycastReceiver);