public static ItemRoot SageStockItemToMTItem(SageStockItem sagestockitem) { ItemRoot itemroot = new ItemRoot(); Item item = new Item(); item.id = ""; item.active = sagestockitem.StockItemStatus == Sage.Accounting.Stock.StockItemStatusEnum.EnumStockItemStatusTypeActive ? true : false; item.externalId = sagestockitem.PrimaryKey.DbValue.ToString(); item.name = sagestockitem.Name; item.type = "INVENTORY"; // ??? Cost cost = new Cost() { amount = PriceConverter.FromDecimal(sagestockitem.PriceBands[0].StockItemPrices[0].Price, 2), precision = 2 }; item.cost = cost; Residual residual = new Residual() { amount = 0 // ??? }; item.residual = residual; itemroot.item = item; return(itemroot); }
void Awake() { unitRigidbody = GetComponent <Rigidbody>(); unitCollider = GetComponent <CapsuleCollider>(); ani = GetComponent <Animator>(); groundCheckDistance = baseGroundCheckDistance; this.game_status = GameObject.Find("GameRoot").GetComponent <GameStatus>(); this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); }
public float step_timer = 0.0f; //타이머 void Start() { this.step = STEP.NONE; //현 단계 상태를 초기화. this.next_step = STEP.MOVE; //다음 단계 상태를 초기화. this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; }
void Start() { // 이동, 수리, 식사 등 상태에 관한 초기화입니다 this.step = STEP.NONE; // 현재 상태 초기화 this.next_step = STEP.MOVE; // 다음 상태 초기화 // 수집 행동을 위해 ItemRoot 스크립트를 가져옵니다. this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; }
void Start() { gameStatus = GameObject.Find("GameRoot").GetComponent <GameStatus>(); itemRoot = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); dirt.SetActive(false); canHarvestMarker.SetActive(false); isWatered = false; seed = TYPE.NONE; gameStatus.OnChangedTurn += SetRemainTurn; }
// Use this for initialization void Start() { this.step = STEP.NONE; // 현 단계 상태를 초기화. this.next_step = STEP.MOVE; // 다음 단계 상태를 초기화. this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; this.guistyle.fontSize = 16; this.event_root = GameObject.Find("GameRoot").GetComponent <EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.Find("rocket_model").gameObject; this.game_status = GameObject.Find("GameRoot").GetComponent <GameStatus>(); animator = this.transform.GetChild(0).GetComponent <Animator>(); }
//Needs testing #region Items /// <summary> /// The item API provides detailed item information. /// This includes item set information if this item is part of a set. /// </summary> /// <param name="itemID">the id of the item</param> /// <returns>ItemRoot</returns> public ItemRoot GetItem(string itemID) { var item = new ItemRoot(); var url = string.Format(@"{0}/wow/item/{1}?locale={2}&apikey={3}", _Host, itemID, _Locale, _APIKey); item = json.GetDataFromURL <ItemRoot>(url); return(item); }
void Start() { this.step = STEP.NONE; // 현 단계 상태를 초기화. this.next_step = STEP.MOVE; // 다음 단계 상태를 초기화. this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; this.guistyle.fontSize = 16; this.event_root = GameObject.Find("GameRoot").GetComponent <EventRoot>(); this.game_status = GameObject.Find("GameRoot").GetComponent <GameStatus>(); game_status.OnClickedSeedBtn += OnClickedSeedBtn; }
public float step_timer = 0.0f; // タイマー void Start() { this.step = STEP.NONE; // 現ステップの状態を初期化 this.next_step = STEP.MOVE; // 次ステップの状態を初期化 this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; this.event_root = GameObject.Find("GameRoot").GetComponent <EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject; this.game_status = GameObject.Find("GameRoot").GetComponent <GameStatus>(); }
void UpdateTaskView() { ItemRoot.DestroyChildren(); foreach (var timeTickTask in mAllTask) { UITimeTickTaskItem.InstantiateWithParent(ItemRoot) .Show() .GetILComponent <UITimeTickTaskItem>() .InitWithData(timeTickTask); } UITimeTickTaskItem.Hide(); }
/// <summary> /// The item API provides detailed item information. /// This includes item set information if this item is part of a set. /// </summary> /// <param name="itemID">the id of the item</param> /// <returns>ItemRoot object</returns> public async Task <ItemRoot> GetItemAsync(string itemID) { var item = new ItemRoot(); var url = string.Format( @"{0}/wow/item/{1}?locale={2}&apikey={3}", _Host, itemID, _Locale, _APIKey); item = await this.jsonUtility.GetDataFromURLAsync <ItemRoot>(url); return(item); }
private GameObject carried_item_prev = null; //! 운반 중인 아이템. void Start() { this.step = STEP.NONE; this.next_step = STEP.MOVE; this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.event_root = GameObject.Find("GameRoot").GetComponent <EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject; this.game_status = GameObject.Find("GameRoot").GetComponent <GameStatus>(); // status this.animation = this.transform.GetComponentInChildren <Animation>(); //motion this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); // sound. this.effect_control = GameObject.Find("GameRoot").GetComponent <VanishEffectControl>(); }
public static string getBackgrndImgUrl(string tarUrl) { string imgUrl = string.Empty; try { var srcJson = new WebClient(); string jsonData = srcJson.DownloadString(tarUrl); var jsonObj = JsonConvert.DeserializeObject <Root>(jsonData); Item imgObj = jsonObj.batchrsp.items[0]; ItemRoot innerObj = JsonConvert.DeserializeObject <ItemRoot>(imgObj.item); imgUrl = innerObj.ad.image_fullscreen_001_landscape.u; } catch (Exception ex) { Log.Error(ex.ToString()); } return(imgUrl); }
public float step_timer = 0.0f; // 타이머. // Use this for initialization // event_root와 rocket_model 초기화 추가 void Start() { this.step = STEP.NONE; // 현 단계 상태를 초기화. this.next_step = STEP.MOVE; // 다음 단계 상태를 초기화. this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.Title_effect = GameObject.Find("Main Camera").GetComponent <TitleStart>(); this.guistyle.fontSize = 16; this.event_root = GameObject.Find("GameRoot").GetComponent <EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.Find( "rocket_model").gameObject; this.game_status = GameObject.Find("GameRoot").GetComponent <GameStatus>(); this.audio = this.gameObject.AddComponent <AudioSource>(); this.audio.clip = effect1; this.audio.loop = false; }
void Start() { // 이동, 수리, 식사 등 상태에 관한 초기화입니다 this.step = STEP.NONE; // 현재 상태 초기화 this.next_step = STEP.NONE; // 다음 상태 초기화 // 수집 행동을 위해 ItemRoot 스크립트를 가져옵니다. this.item_root = GameObject.Find("GameRoot").GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; this.skill_root = GameObject.Find("GameRoot").GetComponent <SkillRoot>(); this.carried_skill = skill_root.Skill_list[0]; // 스킬 설정 inventory.ItemUsed += Inventory_ItemUsed; inventory.ItemRemoved += Inventory_ItemRemoved; //fireCtrl가져온거 fireCtrl = GameObject.FindGameObjectWithTag("Enemy").GetComponent <FireCtrl>(); }
// Use this for initialization void Start() { goDir = GameObject.Find("FrontDir"); backDir = GameObject.Find("BackDir"); MapCamera = GameObject.Find("MiniMap"); animator = GetComponentInChildren <Animator>(); willson = GameObject.Find("WillsonTable"); game_root = GameObject.Find("GameRoot"); this.step = STEP.NONE; // 현 단계 상태를 초기화. this.next_step = STEP.MOVE; this.item_root = game_root.GetComponent <ItemRoot>(); this.guistyle.fontSize = 16; this.event_root = game_root.GetComponent <EventRoot>(); this.rocket_model = GameObject.Find("boat").transform.FindChild("boat_model").gameObject; this.game_status = game_root.GetComponent <GameStatus>(); dt = game_root.GetComponent <DayTime>(); _Torch = GameObject.Find("Torch"); _Torch.SetActive(false); }
void Start() { this.game_status = this.gameObject.GetComponent <GameStatus>(); this.player_control = GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerControl>(); this.item_root = this.gameObject.GetComponent <ItemRoot>(); this.player_control.enabled = false; this.item_root.enabled = false; this.game_status.enabled = false; this.score_disp = this.gameObject.GetComponent <ScoreDisp>(); this.step = STEP.NONE; this.next_step = STEP.TITLE; this.sound_control = GameObject.Find("SoundRoot").GetComponent <SoundControl>(); // sound. this.animation = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject.GetComponentInChildren <Animation>(); //motion this.guistyle.fontSize = 64; this.title_rect = new Rect(0, -Screen.height * 0.2f, title_texture.width, title_texture.height); this.start_rect = new Rect(Screen.width / 2 - start_texture.width / 2, Screen.height * 0.8f - start_texture.height / 2, start_texture.width, start_texture.height); this.result_rect = new Rect(Screen.width / 2 - result_texture.width / 2, Screen.height / 2 - result_texture.height / 2, result_texture.width, result_texture.height); this.next_rect = new Rect(Screen.width / 2 - next_texture.width / 2, Screen.height * 0.9f - next_texture.height / 2, next_texture.width, next_texture.height); }
void Start() { this.step = STEP.NONE; // 현 단계의 상태를 초기화. this.next_step = STEP.MOVE; // 다음 단계의 상태를 초기화. this.item_root = GameObject.Find("GameRoot").GetComponent<ItemRoot>(); this.guistyle.fontSize = 16; this.event_root = GameObject.Find("GameRoot").GetComponent<EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.FindChild( "rocket_model").gameObject; this.game_status = GameObject.Find("GameRoot").GetComponent<GameStatus>(); }
void Start() { this.step = STEP.NONE; // 現ステップの状態を初期化. this.next_step = STEP.MOVE; // 次ステップの状態を初期化. this.item_root = GameObject.Find("GameRoot").GetComponent<ItemRoot>(); this.guistyle.fontSize = 16; this.event_root = GameObject.Find("GameRoot").GetComponent<EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.FindChild( "rocket_model").gameObject; }
void Start() { this.step = STEP.NONE; this.next_step = STEP.MOVE; this.item_root = GameObject.Find("GameRoot").GetComponent<ItemRoot>(); this.event_root = GameObject.Find("GameRoot").GetComponent<EventRoot>(); this.rocket_model = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject; this.game_status = GameObject.Find("GameRoot").GetComponent<GameStatus>(); // status this.animation = this.transform.GetComponentInChildren<Animation>(); //motion this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); // sound. this.effect_control = GameObject.Find("GameRoot").GetComponent<VanishEffectControl>(); }
void Start() { this.game_status = this.gameObject.GetComponent<GameStatus>(); this.player_control = GameObject.FindGameObjectWithTag("Player").GetComponent<PlayerControl>(); this.item_root = this.gameObject.GetComponent<ItemRoot>(); this.player_control.enabled = false; this.item_root.enabled = false; this.game_status.enabled = false; this.score_disp = this.gameObject.GetComponent<ScoreDisp>(); this.step = STEP.NONE; this.next_step = STEP.TITLE; this.sound_control = GameObject.Find("SoundRoot").GetComponent<SoundControl>(); // sound. this.animation = GameObject.Find("rocket").transform.FindChild("rocket_model").gameObject.GetComponentInChildren<Animation>(); //motion this.guistyle.fontSize = 64; this.title_rect = new Rect(0, -Screen.height*0.2f, title_texture.width, title_texture.height); this.start_rect = new Rect(Screen.width/2-start_texture.width/2, Screen.height*0.8f -start_texture.height/2,start_texture.width,start_texture.height); this.result_rect = new Rect(Screen.width/2-result_texture.width/2, Screen.height/2 -result_texture.height/2, result_texture.width, result_texture.height); this.next_rect = new Rect(Screen.width/2-next_texture.width/2, Screen.height*0.9f -next_texture.height/2,next_texture.width,next_texture.height); }