/// <summary> /// ラベルを設定(色と大きさも) /// </summary> public void SetLabel(string text, float time, Vector3 pos, Color color, Vector3 scale) { //ラベルを取得 FadeOutLabel f = GetLabel(); if (f != null) { //座標変換 //pos = FuncBox.ViewPointTransform(Camera.main, pos, uiCamera); f.transform.position = pos; f.transform.localScale = scale; f.StartFadeLabel(text, color, time); f.SetPhysicsParameter(yForceMin, yForceMax, xMoveMin, xMoveMax); } }
public override void Initialize() { base.Initialize(); int maxx = EntityGame.Viewport.Width / _size.X + 1; int maxy = EntityGame.Viewport.Height / _size.Y + 1; _hsv = new HSVTilemap(this, "tiles", new Point(maxx, maxy)); _hsv.Render.Scale = new Vector2(_size.X, _size.Y); _xyz = new XYZTilemap(this, "tiles", new Point(maxx, maxy)); _xyz.Render.Scale = new Vector2(_size.X, _size.Y); _xyz.Active = false; _xyz.Visible = false; Page p = new Page(this, "Page"); p.Show(); _label = new FadeOutLabel(p, "FadeOutLabel", new Point(0, 0)); _label.Text = "HSV Test"; _ctm = new ColorTestManager(this, "CTM"); }