private void Awake() { if (_instance != null) { Destroy(this); return; } _instance = this; _spriteRenderer = GetComponent <SpriteRenderer>(); _soulKeeper = transform.Find("SoulKeeper").GetComponent <SoulKeeper>(); _secondChanceClickArea = GetComponent <TouchObject>(); _secondChanceClickArea.IsActive = false; _secondChanceClickArea.OnClick.AddListener(OnSecondChanceAreaClick); }
void Start() { player = FindObjectOfType <SoulKeeper> (); }