Esempio n. 1
0
        private static void Main(string[] args)
        {
            Agent agent1 = new MyopicAgent();
            Agent agent2 = new ScoreAgent();

            PitAgents(agent1, agent2, 100);

            Console.WriteLine("Stopping...");
            Console.ReadLine();
        }
Esempio n. 2
0
    void Awake()
    {
        if( mInstance != null )
        {
            Debug.LogError( string.Format( "Only one instance of ScoreAgent allowed! Destroying:" + gameObject.name +", Other:" + mInstance.gameObject.name ) );
            Destroy( gameObject );
            return;
        }

        mInstance = this;
    }