コード例 #1
0
 protected void Emit(Signal signal, InteractiveBehaviour target)
 {
     if (target == null)
     {
         return;
     }
     target.OnSignalInternal(signal);
 }
コード例 #2
0
ファイル: Signal.cs プロジェクト: blueloveTH/gameflow-toolkit
        internal string Summary(InteractiveBehaviour target)
        {
            string txt = string.Empty;

            txt += "[SIGNAL] " + name + "\n";
            txt += source.unitName + " => " + target.unitName + "\n";
            foreach (var item in data)
            {
                txt += ">> " + item.Key + ": " + item.Value + "\n";
            }
            return(txt);
        }
コード例 #3
0
ファイル: Signal.cs プロジェクト: blueloveTH/gameflow-toolkit
        internal Signal(InteractiveBehaviour source, string name)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }
            this.name   = name;
            this.source = source;
            data        = new Dictionary <string, object>();

            isBlocked = false;
        }