public void Init(int _x, int _y, Game _game, Game.NumType _type)
 {
     this.x    = _x;
     this.y    = _y;
     this.game = _game;
     this.type = _type;
 }
示例#2
0
    public NumberObj CreateNewNumber(int x, int y, Game.NumType type)
    {
        GameObject gameObject = UnityEngine.Object.Instantiate <GameObject>(this.numberPrefabDict[type], this.GetNumPos((float)x, (float)y), Quaternion.identity);

        gameObject.transform.SetParent(base.transform.Find("img_box").transform);
        this.numberArry[x, y] = gameObject.GetComponent <NumberObj>();
        this.numberArry[x, y].Init(x, y, this, type);
        if (this.numberArry[x, y].CanSetNumber())
        {
            this.numberArry[x, y].NumberComponent.SetNumber((NumberControl.NmberDigit)UnityEngine.Random.Range(0, this.RandMaxNum));
        }
        return(this.numberArry[x, y]);
    }
 public void ChangeNewType(Game.NumType _type)
 {
     this.type = _type;
 }
示例#4
0
 internal int GetNumber(Game.NumType type)
 {
     throw new NotImplementedException();
 }