示例#1
0
 public ToolsWindowViewModel(int size, ToolsMode mode, ItemBoard brd)
 {
     Size     = size;
     Mode     = mode;
     this.brd = brd;
     Value    = brd[0, 0];
 }
示例#2
0
 // Start is called before the first frame update
 void Start()
 {
     Anim               = GetComponent <Animator>();
     CController        = GetComponent <CharacterController>();
     Col                = GetComponent <CapsuleCollider>();
     ActionBtn          = false;
     isRide             = false;
     ActionBtnPressTime = 0;
     UIS                = UI_Manager.m_UI_Manager;
     OpenBox            = null;
     GroundLayerMask    = 1 << LayerMask.NameToLayer("Ground");
     b_CanMove          = true;
     b_CanRoateCam      = true;
     b_InvenOn          = false;
     InvenM             = GetComponent <Inven_Manager>();
     ItemB              = GameObject.Find("ItemBoard").GetComponent <ItemBoard>();
     SetInven(2, 4);
 }
示例#3
0
 public void InitItems()
 {
     itemBoard = new ItemBoard (Const.BOARD_HEIGHT, Const.BOARD_WIDTH);
     for(int i = 0; i < Const.BOARD_HEIGHT; i++){
         for(int j = 0; j < Const.BOARD_WIDTH; j++){
             itemBoard.ItemArray [i, j] = new Item(ItemType.NONE);
         }
     }
 }