using UnityEngine; public class PlayerController : MonoBehaviour { public Animator animator; void Update () { if (Input.GetKeyDown(KeyCode.J)) { animator.SetTrigger("sword in"); } } public class Identifier { } public Animator Update () { if (Input.GetKeyDown(KeyCode.k)) { animator.SetTrigger("sword out"); } } }
error CS0111: Type 'PlayerController' already defines a member called 'Update' with the same parameter types . pls help me!
Update
PlayerController
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)