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 AddPlane() { m_TankManager.AddBomber(1); m_PlaneText.text = "Bombers: " + m_TankManager.BomberCount(); m_ScoreText.text = m_ColoredPlayerText + m_TankManager.m_TankObject.m_PlayerScore + " points"; }