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