using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AStarTEST : MonoBehaviour
{
public AIBase aibase;
// Start is called before the first frame update
void Start()
{
aibase.MaxSpeed += 1;
}
}
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class AStarTEST : MonoBehaviour
{
public AIBase aibase;
// Start is called before the first frame update
void Start()
{
aibase.MaxSpeed += 1;
}
}
maxSpeed not MaxSpeed.
You probably are missing a “using” statement. Whatever is the namespace of the AIBase class.
What is the exact error message you get?
Also, please post your code in code tags, more info about this here .
error CS0246: The type or namespace name ‘AIBase’ could not be found (are you missing a using directive or an assembly reference?)
I think you’re correct.