public void LevelUp() { level++; PieceLib.AddToLevel(level); time_max *= 0.9f; if (time_max < 5) { time_max = 5; } }
public void GetNewPiece() { //Debug.Log("GetNewPiece"); cur_piece = PieceLib.GenNewPiece(); //Debug.Log(cur_piece == null); cur_piece_render.data = cur_piece; cur_piece_render.Render(); mouse_piece.transform.position = Vector2.zero; mouse_piece.data = cur_piece; mouse_piece.Render(); }
// Use this for initialization void Awake() { self = this; PieceLib.Init(); StartLevel(); }