public void OnEnable() { gridElement = GetComponent <GridElement>(); gameFlowManager.RegisterAI((AIBase)this); }