putting things inside parentheses of methods

I am beginner level with c#. I saw a guy who puts things inside the parentheses of methods. I haven’t learned this yet. Anyone know a tutorial or even what I could google? The example he gaveis below and mentioned passing the type. I’ve seen this type of stuff a few time and would like to learn it’s usefulness.

using UnityEngine;

public class Enemy : MonoBehaviour
{
    public enum EnemyType {Weakling; Mediocre, Tough };

    public EnemyType enemyType = 0;

	void Update ()
    {
        DoStuffBasedOnType(enemyType);
    }

    void DoStuffBasedOnType(EnemyType enemyType)
    {

    }
}

Google for “C# method parameters” and you should get what you need to learn.

hello, that things is ‘enum’. you can get more info about them from this tutorial

you can watch this tutorial series for getting better at c#

keep going, and keep learning.

You have one syntax error in 5th line. It is

  public enum EnemyType {Weakling; Mediocre, Tough };

but it should be

  public enum EnemyType {Weakling, Mediocre, Tough };

You have one syntax error in 5th line. It is

  public enum EnemyType {Weakling; Mediocre, Tough };

but it should be

  public enum EnemyType {Weakling, Mediocre, Tough };