Example #1
0
    // Start is called before the first frame update
    void Start()
    {
        lifePlayer = GameObject.FindGameObjectWithTag("Player").GetComponent <LifePlayer>();
        lifeEnemy  = GameObject.FindGameObjectWithTag("Enemy").GetComponent <LifeEnemy>();

        arrowSongDirections = Spawner.Instance.duel;

        originalSprite = this.GetComponent <SpriteRenderer>().sprite;
    }
Example #2
0
    public void StartCombat(ArrowSongDirections duel)
    {
        GameManager.Instance.UpdateState(GameManager.GameState.COMBAT);
        Spawner.Instance.duel = duel;

        Spawner.Instance.spawnArrorDuelCoroutine = StartCoroutine(Spawner.Instance.SpawnArrowDuel());

        UI_Items.Instance.generalItems.pnlCombat.SetActive(true);
        combat.SetActive(true);
    }