-1
\$\begingroup\$
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Mos_Giant : Enemy
{
    public override void update()
    {
        Debug.Log("AAA");
    }

// Start is called before the first frame update
void Start()
{
    
}

// Update is called once per frame
void Update()
{
    
}
}
New contributor
Parv Mangal is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
\$\endgroup\$
0

1 Answer 1

5
\$\begingroup\$

C# is case sensitive. Case sensitivity defines whether uppercase and lowercase letters are treated as distinct (case-sensitive) or equivalent (case-insensitive).

That means update() is not the same as Update().

Change it to uppercase and it should now be called.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .