예제 #1
0
 private void Awake()
 {
     _renderer = GetComponent <SpriteRenderer>();
     _collider = GetComponent <Collider2D>();
     _event.Register(OnEventRaised);
 }
예제 #2
0
 void Start()
 {
     _event.Register(OnInvisible);
 }