Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        FutileParams futileParams = new FutileParams(true, false, false, false);

        futileParams.AddResolutionLevel(160, 1.0f, 1.0f, "");
        futileParams.origin          = new Vector2(0.5f, 0.5f);
        futileParams.backgroundColor = new Color(0.494f, 0.561f, 0.639f);
        Futile.instance.Init(futileParams);

        Futile.atlasManager.LoadAtlas("Atlases/atlasOne");
        Futile.atlasManager.LoadFont("gameFont", "fontOne_0", "Atlases/fontOne", 0, 0);

        eventQueue = new List <Event>();

        GlitchManager gManager = GlitchManager.getInstance();


        camera = Ym90_GUI.getInstance();
        player = new Player();

        currentMap = new Map();
        currentMap.setPlayer(player);
        loadMap("testMap");

        loadingScreen = new LoadingScreen();
        camera.setLoadingScreen(loadingScreen);
        camera.follow(player);



        Futile.stage.AddChild(camera);
    }
Exemplo n.º 2
0
 public static Ym90_GUI getInstance()
 {
     if (instance == null)
     {
         instance = new Ym90_GUI();
     }
     return(instance);
 }
Exemplo n.º 3
0
 public override void execute()
 {
     if (convo.container == null)
     {
         Ym90_GUI.getInstance().AddChild(convo);
     }
     if (convo.isFinished)
     {
         this.isFinished = true;
     }
 }
 public override void execute()
 {
     if (!triggered)
     {
         Ym90_GUI.getInstance().moveTo(target, time);
         triggered = true;
     }
     else
     {
         count += UnityEngine.Time.deltaTime;
         if (count > time)
         {
             this.isFinished = true;
         }
     }
 }