public void InitCanvas() { m_TankManager = GameManager.m_Instance.FindTankManager(m_PlayerNumber); m_ColoredPlayerText = "<color=#" + ColorUtility.ToHtmlStringRGB(m_TankManager.m_TankObject.m_PlayerColor) + ">PLAYER " + m_PlayerNumber + " </color>"; m_ScoreText.text = m_ColoredPlayerText + m_TankManager.m_TankObject.m_PlayerScore + " points"; m_ShellText.text = "Shells: " + m_TankManager.ShellCount(); m_GuidedShellText.text = "Guided Shells: " + m_TankManager.GuidedShellCount(); m_PlaneText.text = "Bombers: " + m_TankManager.BomberCount(); }
public void AddGuidedShell() { m_TankManager.AddGuidedShell(1); m_GuidedShellText.text = "Guided Shells: " + m_TankManager.GuidedShellCount(); m_ScoreText.text = m_ColoredPlayerText + m_TankManager.m_TankObject.m_PlayerScore + " points"; }