Example #1
0
 protected override void OnEnableBase()
 {
     foreach (var Graber in Grabers)
     {
         Graber.AddGraber(this);
     }
 }
Example #2
0
 void OnEnable()
 {
     OtherGrabers.Clear();
     OtherGrabers.AddRange(FindObjectsOfType <PickupGraberV2>().Where(e => e != this).ToArray());
     foreach (var Graber in OtherGrabers)
     {
         Graber.AddGraber(this);
     }
 }