This file contains hidden or 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
using System.Collections.Concurrent; | |
using System.ComponentModel; | |
using System.Runtime.CompilerServices; | |
[AttributeUsage(AttributeTargets.Method)] | |
public sealed class NotifyPropertyChangedInvocatorAttribute : Attribute | |
{ | |
public NotifyPropertyChangedInvocatorAttribute() | |
{ | |
} |
This file contains hidden or 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
private void Method() | |
{ | |
var wait = new Wait(this); | |
wait.Execute(5.0F).Done += (i) => DoSomething; | |
} | |
private IEnumerator Method() | |
{ | |
yield return new Wait(this, 5.0F); |
This file contains hidden or 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
private void Method() | |
{ | |
car wait = new WaitForKeyDown(this); | |
wait.Execute(KeyCode.Space).Done += (i) => DoSomething(); | |
} | |
private IEnumerator Method() | |
{ | |
yield return new WaitForKeyDown(this) { Key = KeyCode.Space }; |
This file contains hidden or 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
private void Method() | |
{ | |
var move = new MoveToPoint(this) | |
{ | |
Actor = transform, | |
Target = target, | |
Speed = 1.0F, | |
Threshold = 0.05F | |
}; |
This file contains hidden or 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
using UnityEngine; | |
using System; | |
using IEnumerator = System.Collections.IEnumerator; | |
public abstract class Instruction : IEnumerator, IInstruction | |
{ | |
private Instruction current; | |
object IEnumerator.Current => current; |