Exemplo n.º 1
0
    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);
    }
Exemplo n.º 2
0
 void Start()
 {
     player = FindObjectOfType <SoulKeeper> ();
 }