Exemplo n.º 1
0
 public void OnInit(InitContext context)
 {
     if (context == InitContext.Loaded)
     {
         _win         = GameObj.ChildByName("Win");
         _win.Active  = false;
         _lose        = GameObj.ChildByName("Lose");
         _lose.Active = false;
     }
 }
Exemplo n.º 2
0
        public void OnInit(InitContext context)
        {
            if (context == InitContext.Loaded)
            {
                groundBackground   = GameObj.ChildByName("Ground");
                mountainBackground = GameObj.ChildByName("Mountain");
                skyBackground      = GameObj.ChildByName("Sky");

                groundAltBackground   = GameObj.ChildByName("Ground-Alt");
                mountainAltBackground = GameObj.ChildByName("Mountain-Alt");
                skyAltBackground      = GameObj.ChildByName("Sky-Alt");
            }
        }
Exemplo n.º 3
0
        public void OnInit(InitContext context)
        {
            if (context != InitContext.Activate)
            {
                return;
            }

            _visitedTileStack = new Stack <Point2>();

            //Get the tilemaps
            _bordersTiles  = GameObj.ChildByName("BordersTilemap").GetComponent <Tilemap>();
            _movementTiles = GameObj.ChildByName("MovementTilemap").GetComponent <Tilemap>();

            ResetMaze();

            GenerateMaze();
        }