// ------------------------------------------------------------------------------------------------------------------- public override void Start() { base.Start(); m_timeSimulation = 0; m_lastCreationTime = 0; m_state = State.Idle; m_workerCount = 0; m_level = 5; m_waypoints = new List <Vector3> (); m_tmpWaypoints = null; m_spawnPointVisualController = GetComponentInChildren <SpawnPointVisualController>(); m_spawnPointVisualController.setColor(m_player.getPlayerColor()); m_setWaypointsTexture = Resources.Load("icons/SetWaypoints") as Texture2D; m_addWorkerTexture = Resources.Load("icons/AddWorker") as Texture2D; m_levelUpTexture = Resources.Load("icons/LevelUp") as Texture2D; // Register as commandable objects CommandableDictionary.instance.register(name, this); m_selectionObjectController = GetComponentInChildren <SelectionObjectController> (); }
// Use this for initialization void Start() { m_merchantList = new List <GameObject>(); m_selectionObjectController = GetComponentInChildren <SelectionObjectController> (); setRadius(m_bazarRadius); setNumberOfMerchants(3); setCostOfItems(3); m_levelUpMerchantTexture = Resources.Load("icons/LevelUp") as Texture2D; m_increaseSellpriceTexture = Resources.Load("icons/IncreaseSellprice") as Texture2D; m_increaseRadiusTexture = Resources.Load("icons/IncreaseRadius") as Texture2D; // Register as commandable objects CommandableDictionary.instance.register(name, this); }