Exemple #1
0
    void Awake()
    {
        dicMove = new Dictionary<KeyCode, Vector3> (){
            {KeyCode.A, new Vector2(-1,0) },
            {KeyCode.D, new Vector2(1,0) },
            {KeyCode.W, new Vector2(0,1) },
            {KeyCode.S, new Vector2(0,-1) }
        };
        world = new NWorld.World (10,10);
        pManager = new NGame.PlayerManager ();

        gManager.Init(world);
        pManager.Init (world, 0, 0);
        AwakeTest ();
    }
Exemple #2
0
    void Awake()
    {
        dicMove = new Dictionary <KeyCode, Vector3> ()
        {
            { KeyCode.A, new Vector2(-1, 0) },
            { KeyCode.D, new Vector2(1, 0) },
            { KeyCode.W, new Vector2(0, 1) },
            { KeyCode.S, new Vector2(0, -1) }
        };
        world    = new NWorld.World(10, 10);
        pManager = new NGame.PlayerManager();

        gManager.Init(world);
        pManager.Init(world, 0, 0);
        AwakeTest();
    }
Exemple #3
0
 void LinkEvents(NWorld.World world)
 {
 }