Created
December 23, 2021 04:21
-
-
Save MadhurG-Hexaware/ed34607b00b7811647467ede67d77feb to your computer and use it in GitHub Desktop.
Script Templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 82-Signals__Singals No Param-SignalTemplate.cs.txt | |
using Supyrb; | |
public class #SCRIPTNAME# : Signal | |
{ | |
// Override invoke to make sure that the derived signal class shows up in the stacktrace | |
protected override void Invoke(int index) | |
{ | |
base.Invoke(index); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//82-Signals__Singals One Param-SignalTemplate.cs.txt | |
using Supyrb; | |
public class #SCRIPTNAME# : Signal<T> | |
{ | |
// Override invoke to make sure that the derived signal class shows up in the stacktrace | |
protected override void Invoke(int index) | |
{ | |
base.Invoke(index); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 82-Signals__Singals Three Param-SignalTemplate3.cs.txt | |
using Supyrb; | |
public class #SCRIPTNAME# : Signal<T, U , V> | |
{ | |
// Override invoke to make sure that the derived signal class shows up in the stacktrace | |
protected override void Invoke(int index) | |
{ | |
base.Invoke(index); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 82-Signals__Singals Two Param-SignalTemplate2.cs.txt | |
using Supyrb; | |
public class #SCRIPTNAME# : Signal<T,U> | |
{ | |
// Override invoke to make sure that the derived signal class shows up in the stacktrace | |
protected override void Invoke(int index) | |
{ | |
base.Invoke(index); | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 82-State__New State-StateTemplate.cs.txt | |
using Bg.UniTaskStateMachine; | |
using Cysharp.Threading.Tasks; | |
using System.Threading; | |
using UnityEngine; | |
public class #SCRIPTNAME# : BaseStateComponent | |
{ | |
public override void Init(BaseNode baseNode) | |
{ | |
base.Init(baseNode); | |
} | |
public override UniTask OnEnter(CancellationToken ct = default) | |
{ | |
return base.OnEnter(ct); | |
} | |
public override UniTask OnExit(CancellationToken ct = default) | |
{ | |
return base.OnExit(ct); | |
} | |
public override UniTask OnUpdate(CancellationToken ct = default) | |
{ | |
return base.OnUpdate(ct); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment