Exemplo n.º 1
0
        public void changID()
        {
            var       dataEntity = GetComponent <BagViewModel>().DataEntity;
            BagEntity _entity    = (BagEntity)dataEntity;

            _entity.initBag++;
        }
Exemplo n.º 2
0
        /// <summary>
        /// Unity Method
        /// </summary>
        void Start()
        {
            var       dataEntity = GetComponent <BagViewModel>().DataEntity;
            BagEntity _entity    = (BagEntity)dataEntity;

            _entity.initBag = 1;
        }