LightningSpellScript Methods |
The LightningSpellScript type exposes the following members.
| Name | Description | |
|---|---|---|
| ActivateSpell |
Equip / ready the spell
| |
| ApplyCollisionForce |
Apply collision force at a point
| |
| BroadcastMessage(String) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
| BroadcastMessage(String, Object) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
| BroadcastMessage(String, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
| BroadcastMessage(String, Object, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
| CancelInvoke | Cancels all Invoke calls on this MonoBehaviour. | |
| CancelInvoke(String) | Cancels all Invoke calls with name methodName on this behaviour. | |
| CastSpell |
Cast the spell
| |
| CompareTag | Is this game object tagged with tag ? | |
| DeactivateSpell |
Unequip the spell
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| FindChildRecursively |
Find a game object searching recursively through all children and grand-children, etc.
| |
| GetComponent(Type) | Returns the component of Type type if the game object has one attached, null if it doesn't. | |
| GetComponent(String) | Returns the component with name type if the game object has one attached, null if it doesn't. | |
| GetComponent``1 | (Inherited from Component.) | |
| GetComponentInChildren(Type) | Returns the component of Type type in the GameObject or any of its children using depth first search. | |
| GetComponentInChildren(Type, Boolean) | (Inherited from Component.) | |
| GetComponentInChildren``1 | (Inherited from Component.) | |
| GetComponentInChildren``1(Boolean) | (Inherited from Component.) | |
| GetComponentInParent(Type) | Returns the component of Type type in the GameObject or any of its parents. | |
| GetComponentInParent``1 | (Inherited from Component.) | |
| GetComponents(Type) | Returns all components of Type type in the GameObject. | |
| GetComponents(Type, ListComponent) | (Inherited from Component.) | |
| GetComponents``1 | (Inherited from Component.) | |
| GetComponents``1(ListUMP) | (Inherited from Component.) | |
| GetComponentsInChildren(Type) | Returns all components of Type type in the GameObject or any of its children. | |
| GetComponentsInChildren(Type, Boolean) | Returns all components of Type type in the GameObject or any of its children. | |
| GetComponentsInChildren``1 | (Inherited from Component.) | |
| GetComponentsInChildren``1(Boolean) | (Inherited from Component.) | |
| GetComponentsInChildren``1(ListUMP) | (Inherited from Component.) | |
| GetComponentsInChildren``1(Boolean, ListUMP) | (Inherited from Component.) | |
| GetComponentsInParent(Type) | (Inherited from Component.) | |
| GetComponentsInParent(Type, Boolean) | Returns all components of Type type in the GameObject or any of its parents. | |
| GetComponentsInParent``1 | (Inherited from Component.) | |
| GetComponentsInParent``1(Boolean) | (Inherited from Component.) | |
| GetComponentsInParent``1(Boolean, ListUMP) | (Inherited from Component.) | |
| GetHashCode | (Inherited from Object.) | |
| GetInstanceID | Returns the instance id of the object. | |
| GetType | (Inherited from Object.) | |
| Invoke | Invokes the method methodName in time seconds. | |
| InvokeRepeating | Invokes the method methodName in time seconds, then repeatedly every repeatRate seconds. | |
| IsInvoking | Is any invoke pending on this MonoBehaviour? | |
| IsInvoking(String) | Is any invoke on methodName pending? | |
| LateUpdate |
Late Update.
| |
| MemberwiseClone | (Inherited from Object.) | |
| OnActivated |
On activated
| |
| OnCastSpell |
Start the spell
| |
| OnDeactivated |
On deactivated
| |
| OnDestroy |
On destroy - derived classes should call base class method first
| |
| OnStopSpell |
Stop the spell
| |
| PlayCollisionSound |
Play a collision sound
| |
| SendMessage(String) | Calls the method named methodName on every MonoBehaviour in this game object. | |
| SendMessage(String, Object) | Calls the method named methodName on every MonoBehaviour in this game object. | |
| SendMessage(String, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object. | |
| SendMessage(String, Object, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object. | |
| SendMessageUpwards(String) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
| SendMessageUpwards(String, Object) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
| SendMessageUpwards(String, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
| SendMessageUpwards(String, Object, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
| Start |
Start. Derived classes should call base class method first.
| |
| StartCoroutine(IEnumerator) | Starts a coroutine. | |
| StartCoroutine(String) | Starts a coroutine named methodName. | |
| StartCoroutine(String, Object) | Starts a coroutine named methodName. | |
| StartCoroutine_Auto | Obsolete. (Inherited from MonoBehaviour.) | |
| StopAfterSeconds |
Stop the spell after a certain amount of seconds. If the spell is stopped before seconds elapses, nothing happens.
| |
| StopAllCoroutines | Stops all coroutines running on this behaviour. | |
| StopCoroutine(String) | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. | |
| StopCoroutine(IEnumerator) | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. | |
| StopCoroutine(Coroutine) | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. | |
| StopSpell |
Stop casting a spell. Some spells are single shot and this method does nothing. Spells
that are continouous for example would stop with this method call.
| |
| ToString | Returns the name of the GameObject. | |
| Update |
Update. Derived classes should call base class method first.
|