MissileLauncher Class

Summary

Rotates the Weaver.Examples.MissileLauncher._Launcher to face the mouse cursor and fires a Weaver.Examples.Missile whenever the player clicks the mouse.
Assembly
Weaver.dll
Namespace
Weaver.Examples
Interfaces
Base Types
  • MonoBehaviour
graph BT Type-->Base0["MonoBehaviour"] Type-.->Interface0["IDealDamage"] click Interface0 "/weaver/api/Weaver.Examples/IDealDamage" Type["MissileLauncher"] class Type type-node

Syntax

public sealed class MissileLauncher : MonoBehaviour, IDealDamage

Properties

Name Value Summary
Launcher Transform
The object to rotate to aim.
MissilePrefab Missile
The prefab to clone when firing missiles.
MissileSpeed float
The movement speed of missiles that are fired.

Methods

Name Value Summary
OnDealDamage(ITakeDamage, int) void
Whenever a player missile destroys a non-player one, the player gets points.