public static Tile Add(int id, float x, float y) { if(parent == null) { parent = new TokenMgr<Tile>("Tile"); } var t = parent.Add(x, y); t.Create(id); return t; }
public static Tile Add(int id, float x, float y) { if (parent == null) { parent = new TokenMgr <Tile>("Tile"); } var t = parent.Add(x, y); t.Create(id); return(t); }
/// <summary> /// チップ追加メソッド /// </summary> /// <param name="id">チップ種別</param> /// <param name="x">チップ座標X</param> /// <param name="y">チップ座標Y</param> /// <returns></returns> public static Tip Add(int id, float x, float y, int i, int j, string tipImageName, string tipSpriteName) { if (parent == null) { // Resorcesフォルダ内のチップGOのprefab名を指定 parent = new TokenMgr<Tip>("Tip"); } // チップGOをInstantiateにて作成する var t = parent.Add(x, y); t.TipSpriteSet(id, tipImageName, tipSpriteName); // マップ構成マトリクスXY値を基底クラスのフィールドに設定する t.SetTipMatrix(i,j); return t; }
public IActionResult Authenticate(User uobj) { var response = _service.Authenticate(uobj); if (response == null) { return(BadRequest(new { message = "UserId or password is incorrect" })); } TokenMgr tokenMgr = new TokenMgr(); var t = tokenMgr.GenerateToken(_appSettings, response.UserId); response.Token = t; return(Ok(response)); }