Click or drag to resize

ArticyScriptConditionCallScript Method

Calls the underlying condition script.

Namespace:  Articy.Unity
Assembly:  ArticyRuntime (in ArticyRuntime.dll) Version: 1.0.3
Syntax
C#
public bool CallScript(
	IBaseScriptMethodProvider aMethodProvider = null,
	IGlobalVariables aVariables = null
)

Parameters

aMethodProvider (Optional)
Type: Articy.UnityIBaseScriptMethodProvider
The method provider.
aVariables (Optional)
Type: Articy.Unity.InterfacesIGlobalVariables
A global variables instance, if null is passed the default storage found in the database will be used. See DefaultGlobalVariables.

Return Value

Type: Boolean
true if the condition passed, false if the condition evaluated to be invalid.
Remarks

You can use this to call a script manually. Most of the scripts found in the flow are called automatically when necessary by ArticyFlowPlayer but scripts in templates for example must be called manually.

See Also