private void SpawnTool(CToolInterface.EType _ToolType) { // Create a new object GameObject NewTool = CNetwork.Factory.CreateObject(CToolInterface.GetPrefabType(_ToolType)); // Set the tool's position NewTool.GetComponent <CNetworkView>().SetPosition(m_ToolSpawnLocation.position); NewTool.GetComponent <CNetworkView>().SetEulerAngles(m_ToolSpawnLocation.eulerAngles); }
private void UpdateToolInfo(CToolInterface _tempToolInterface) { // DEBUG: Make a random sentance to describe it string desc = CUtility.LoremIpsum(6, 12, 2, 4, 1); m_SelectedToolType = _tempToolInterface.ToolType; m_SelectedToolCost = 100; // Set the name string name = CUtility.SplitCamelCase(m_SelectedToolType.ToString()); m_ToolNameLabel.text = name; // Set the desc m_ToolDescLabel.text = desc; // Set the cost m_ToolCostLabel.text = m_SelectedToolCost.ToString() + "N"; }
private void UpdateToolInfo(CToolInterface _tempToolInterface) { // DEBUG: Make a random sentance to describe it string desc = CUtility.LoremIpsum(6, 12, 2, 4, 1); m_SelectedToolType = _tempToolInterface.ToolType; m_SelectedToolCost = 100; // Set the name string name = CUtility.SplitCamelCase(m_SelectedToolType.ToString()); m_ToolNameLabel.text = name; // Set the desc m_ToolDescLabel.text = desc; // Set the cost m_ToolCostLabel.text = m_SelectedToolCost.ToString() + "N"; }
public void SetSelectedToolType(CToolInterface.EType _ToolType) { m_CurrentToolType.Set(_ToolType); }