Example #1
0
    void Awake()
    {
        m_ShipConsole = GetComponent <ShipConsole>();
        m_Rigidbody   = GetComponent <Rigidbody>();
        m_WarpSpeed   = GetComponentInChildren <WarpSpeed>();

        m_SpeedBar      = m_SpeedUI.GetComponentInChildren <Image>();
        m_SpeedLabel    = m_SpeedUI.GetComponentInChildren <TextMeshProUGUI>();
        m_FuelLabel     = m_ResourcesUI.transform.Find("Fuel").GetComponent <TextMeshProUGUI>();
        m_ResearchLabel = m_ResourcesUI.transform.Find("Research").GetComponent <TextMeshProUGUI>();
        m_InteractLabel = m_InteractUI.transform.Find("Interact").GetComponent <TextMeshProUGUI>();
        m_FeedbackLabel = m_FeedbackUI.transform.Find("Feedback").GetComponent <TextMeshProUGUI>();
    }
Example #2
0
    public void UpdatePlanet(ShipConsole sc, float dt)
    {
//        Debug.LogFormat("Updating planet: {0}", planet.name);
    }