Esempio n. 1
0
            void BehaviorTrigger.BeginBehavior(BehaviorListener behaviorListener)
            {
                var supLis = new PrvtBSupLis {
                    parent = this, clientListener = behaviorListener
                };

                //seek space on behave
                spaceDistributer.DistributeSpaceToBehave(parent.myCustomizable.gameObject, bExpr, supLis);
                unityBTrigger.BeginBehavior(supLis);
            }
Esempio n. 2
0
 void Taker <UnityBehaviorTrigger> .Take(UnityBehaviorTrigger item)
 {
     actualBTrigger = item;
     foreach (var bListener in bListeners)
     {
         actualBTrigger.BeginBehavior(bListener);
     }
     foreach (var bListener in bListeners)
     {
         actualBCTrigger.BeginBehavior(bListener);
     }
 }