Esempio n. 1
0
    // Used at the start of each round to put the tank into it's default state.
    public void Reset()
    {
        m_Movement.SetDefaults();
        //m_Shooting.SetDefaults();
        //m_Health.SetDefaults();

        if (m_Movement.hasAuthority)
        {
            m_Movement.m_Rigidbody.position = m_SpawnPoint.position;
            m_Movement.m_Rigidbody.rotation = m_SpawnPoint.rotation;
        }
    }