A
A
Alexander2020-07-30 15:17:48
C++ / C#
Alexander, 2020-07-30 15:17:48

How to correctly enter Bool in If?

if(other.tag == "Player" && Input.GetKeyDown(activateEnemies) && enemyStatus(false))

Error CS1955: Non-invocable member 'EnemyActivator.enemyStatus' cannot be used like a method.
He writes to me that it is impossible, but how is it right?
And by the way, what does 74 mean here: "EnemyActivator.cs(13,74): ". There are no 74 lines in the script.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
ayazer, 2020-07-30
@AlexandrG44

judging by the error - enemyStatus is not a method

if(other.tag == "Player" && Input.GetKeyDown(activateEnemies) && !enemyStatus)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question