internal Enumerator(AttachObjectList outer, int category = -1,
                     AttachObjectPhase phase = AttachObjectPhase.Any)
 {
     this.outer    = outer;
     this.category = category;
     this.phase    = phase;
     currentIndex  = -1;
 }
Exemple #2
0
 public Attachment(AttachStrategy strategy, AttachObjectList objects, int executionOrder = 0)
 {
     this.strategy   = strategy;
     _executionOrder = executionOrder;
     ClingyComponent.instance.attachments.Add(new ClingyComponent.ExecutionOrder(_executionOrder), this);
     events.OnObjectConnected.AddListener(OnObjectConnected);
     events.OnObjectWillDisconnect.AddListener(OnObjectWillDisconnect);
     events.OnObjectLeft.AddListener(OnObjectLeft);
     this.objects = objects;
 }