<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OnSchemeStarted</id>
	<title>OnSchemeStarted - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=OnSchemeStarted"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeStarted&amp;action=history"/>
	<updated>2026-05-12T22:57:48Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=OnSchemeStarted&amp;diff=771&amp;oldid=prev</id>
		<title>Tayfunwiki at 14:39, 24 December 2023</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeStarted&amp;diff=771&amp;oldid=prev"/>
		<updated>2023-12-24T14:39:51Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:39, 24 December 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l27&quot;&gt;Line 27:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 27:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private void OnSchemeStarted(Scheme scheme) {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     private void OnSchemeStarted(Scheme scheme) {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Debug.Log($&amp;quot;Actor {actor.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;name&lt;/del&gt;} started the scheme: {scheme.&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Name&lt;/del&gt;}&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         Debug.Log($&amp;quot;Actor {actor.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;FullName&lt;/ins&gt;} started the scheme: {scheme.&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;SchemeName&lt;/ins&gt;}&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         // Additional logic to handle the scheme initiation&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;         // Additional logic to handle the scheme initiation&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     }&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=OnSchemeStarted&amp;diff=770&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;onSchemeStarted&lt;/code&gt; Event in Actor Class ==  === Overview === The &lt;code&gt;onSchemeStarted&lt;/code&gt; event is an integral part of the &lt;code&gt;Actor&lt;/code&gt; class in Unity, designed to handle scenarios when a scheme is initiated by an actor. This event is crucial in games where schemes and strategic actions play a significant role in the gameplay and narrative.  === Description ===  * Event Type: &lt;code&gt;Action&lt;Scheme&gt;&lt;/code&gt; * Functionality: This event is triggered when...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=OnSchemeStarted&amp;diff=770&amp;oldid=prev"/>
		<updated>2023-12-24T14:39:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; Event in Actor Class ==  === Overview === The &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; event is an integral part of the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class in Unity, designed to handle scenarios when a scheme is initiated by an actor. This event is crucial in games where schemes and strategic actions play a significant role in the gameplay and narrative.  === Description ===  * Event Type: &amp;lt;code&amp;gt;Action&amp;lt;Scheme&amp;gt;&amp;lt;/code&amp;gt; * Functionality: This event is triggered when...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; Event in Actor Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; event is an integral part of the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class in Unity, designed to handle scenarios when a scheme is initiated by an actor. This event is crucial in games where schemes and strategic actions play a significant role in the gameplay and narrative.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Event Type: &amp;lt;code&amp;gt;Action&amp;lt;Scheme&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
* Functionality: This event is triggered whenever the actor associated with this class starts a scheme. It allows for the execution of custom logic or actions in response to the initiation of a scheme.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This event is used to implement reactive gameplay mechanics or narrative progressions. It can be utilized to update the game's state, alter other characters' behavior, or trigger storyline advancements based on the scheme's initiation.&lt;br /&gt;
&lt;br /&gt;
=== Subscribing to the Event ===&lt;br /&gt;
To respond to the &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; event, a method with a matching signature (&amp;lt;code&amp;gt;Action&amp;lt;Scheme&amp;gt;&amp;lt;/code&amp;gt;) needs to be subscribed to it. This is typically done in a MonoBehaviour's &amp;lt;code&amp;gt;Start&amp;lt;/code&amp;gt; method and unsubscribed in the &amp;lt;code&amp;gt;OnDestroy&amp;lt;/code&amp;gt; method.&lt;br /&gt;
&lt;br /&gt;
=== Example of Usage ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public class SchemeEventListener : MonoBehaviour {&lt;br /&gt;
    public Actor actor;&lt;br /&gt;
&lt;br /&gt;
    void Start() {&lt;br /&gt;
        if (actor != null) {&lt;br /&gt;
            actor.onSchemeStarted += OnSchemeStarted;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    private void OnSchemeStarted(Scheme scheme) {&lt;br /&gt;
        Debug.Log($&amp;quot;Actor {actor.name} started the scheme: {scheme.Name}&amp;quot;);&lt;br /&gt;
        // Additional logic to handle the scheme initiation&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    void OnDestroy() {&lt;br /&gt;
        if (actor != null) {&lt;br /&gt;
            actor.onSchemeStarted -= OnSchemeStarted;&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this example, a Unity script subscribes to the &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; event of an &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt;. When the actor initiates a scheme, the &amp;lt;code&amp;gt;OnSchemeStarted&amp;lt;/code&amp;gt; method is called, logging the event and allowing for additional response logic.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* Proper handling of event subscriptions and unsubscriptions in Unity is crucial to avoid memory leaks and ensure efficient performance.&lt;br /&gt;
* The &amp;lt;code&amp;gt;onSchemeStarted&amp;lt;/code&amp;gt; event adds depth and interactivity to the game, enabling dynamic responses to character-driven actions.&lt;br /&gt;
* This event is particularly useful in role-playing games, strategy games, or any narrative-driven titles where character actions significantly influence the game's direction.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>