M_MSCLoader_PlayMakerExtensions_FsmInject_1 - piotrulos/MSCModLoader GitHub Wiki

FsmInject(GameObject, String, Action) Method

Note: This API is now obsolete.

FSM Inject as extension (same as old FsmHook.FsmInject)

Definition

Namespace: MSCLoader
Assembly: MSCLoader (in MSCLoader.dll) Version: 1.3.1.346

C#

[ObsoleteAttribute("Please use the other FsmInject extension", true)]
public static void FsmInject(
	this GameObject gameObject,
	string stateName,
	Action hook
)

View Source

Parameters

  GameObject
GameObject where to hook
  String
Name of the state
  Action
Your function to hook

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type GameObject. When you use instance method syntax to call this method, omit the first parameter. For more information, see

Extension Methods (Visual Basic) or

Extension Methods (C# Programming Guide).

See Also

Reference

PlayMakerExtensions Class
FsmInject Overload
MSCLoader Namespace

⚠️ **GitHub.com Fallback** ⚠️