// 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); }
public static Ym90_GUI getInstance() { if (instance == null) { instance = new Ym90_GUI(); } return(instance); }
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; } } }