Generation

generate functionSun, 13 Nov 2022

Create AI

public void CreateAI(string name) { AI ai = new AI(name); ai.action = (float deltaTime) => { // perform AI action return true; // or false if the AI is done }; _ais.Add(ai); }

Questions about programming?Chat with your personal AI assistant