Ejemplo n.º 1
0
 public void refreshScence()
 {
     players[0] = new Thisplayer();
     players[1] = new Nextplayer();
     players[2] = new Antiplayer();
     players[3] = new Frontplayer();
     de         = new decodedic();
 }
Ejemplo n.º 2
0
 //Initialize Defense Script
 public void InitDefense(
     STDMath std, Generator gen, Antiplayer anti
     )
 {
     //initialzie external classes
     map        = gen;
     antiplayer = anti;
     stdMath    = std;
     Random.InitState(stdMath.seed);
 }
Ejemplo n.º 3
0
    /* ===================================================================================================================================
     *
     *                                  Player  / Antiplayer
     *                      Functions used to initialize players
     *=================================================================================================================================== */

    void GenPlayer()
    {
        //create players
        //TODO: player currently hard coded for offense
        player      = new GameObject().AddComponent <Player>();
        player.name = "Player";
        player.Initialize(stdMath, this, assetHolder, selector, true, false, false);

        antiplayer      = new GameObject().AddComponent <Antiplayer>();
        antiplayer.name = "Antiplayer";
        antiplayer.Initialize(stdMath, this, assetHolder, selector, false, true, false);
        antiplayer.InitializeAI();


        //create player holding object
        //	player = new GameObject().AddComponent<Player>();
        //	player.InitPlayer (
        //		stdMath, this, assetHolder
        //	);
    }