Exemple #1
0
        protected override void Start()
        {
            base.Start();

            this.GetComponent <Button>().onClick.AddListener(delegate() {
                GetTarget().IfNotNull(t => scriptlet.Invoke(t));
            });
        }
Exemple #2
0
 public object GetTarget()
 {
     return(path.Invoke(game_object.Coalesce(gameObject)));
 }
Exemple #3
0
 public object Invoke()
 {
     return(scriptlet.Invoke(target));
 }
Exemple #4
0
 static public T Invoke <T>(this Scriptlet item, object target)
 {
     return(item.Invoke(target).ConvertEX <T>());
 }