Esempio n. 1
0
 void Start()
 {
     group = transform.GetComponentInParent <GarbageGroup>();
     if (group == null)
     {
         Debug.LogError("Failed to find GarbageGroup for item", gameObject);
     }
     group.Register(this);
 }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     GarbageGroup.BindToFinish(GroupName.testGroup, () => { print("finished"); });
 }