Forum begins after the advertisement:


[Part 15] cannot implicitly convert type EnemyStats[]

Home Forums Video Game Tutorial Series Creating a Rogue-like Shoot-em Up in Unity [Part 15] cannot implicitly convert type EnemyStats[]

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15699
    Isaac
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    EnemyStats[] targets = FindObjectOfType<EnemyStats>(); => Cannot implicitly convert type ‘EnemyStats’ to ‘EnemyStats[]’

    #15703
    Isaac
    Level 2
    Participant
    Helpful?
    Up
    0
    ::

    I already fix it. I miss the “s” at FindObjectOffType lol

    #15707
    Terence
    Level 30
    Keymaster
    Helpful?
    Up
    0
    ::

    Glad you managed to fix it! For anyone else reading this, his issue was that he used FindObjectOfType instead of FindObjectsOfType.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: