void initialize() { if (System.IO.File.Exists(AgentDependency.AgentsFile)) agents = LoadAgentsFromFile(AgentDependency.AgentsFile); else agents = new AgentDependency(); PositiveButton.fixedWidth = 30; PositiveButton.stretchWidth = false; NegetiveButton.fixedWidth = 30; NegetiveButton.stretchWidth = false; BoldLabel.normal.textColor = Color.white; BoldLabel.fontStyle = FontStyle.Bold; guiAgent = new UnityGUI_AgentManifest(null); guiAgent.SetButtonStyles(PositiveButton, NegetiveButton); }
void initialize() { if (System.IO.File.Exists(AgentDependency.AgentsFile)) { agents = LoadAgentsFromFile(AgentDependency.AgentsFile); } else { agents = new AgentDependency(); } PositiveButton.fixedWidth = 30; PositiveButton.stretchWidth = false; NegetiveButton.fixedWidth = 30; NegetiveButton.stretchWidth = false; BoldLabel.normal.textColor = Color.white; BoldLabel.fontStyle = FontStyle.Bold; guiAgent = new UnityGUI_AgentManifest(null); guiAgent.SetButtonStyles(PositiveButton, NegetiveButton); }