Пример #1
0
    ///
    /// Monobehavior Methods
    ///

    void Awake()
    {
        m_accelerate    = false;
        m_turnDirection = 0;
        m_accelPercent  = 1.0f;

        m_rigidbody = GetComponent <Rigidbody2D>();
        m_rigidbody.centerOfMass = Vector2.zero;
        m_soundSystem            = GetComponent <SoundSystemScript>();
    }
Пример #2
0
 protected void Init()
 {
     ApplyModifier();
     m_soundSystem = GetComponent <SoundSystemScript>();
 }
Пример #3
0
 protected void Init()
 {
     m_soundSystem = GetComponent <SoundSystemScript>();
 }
Пример #4
0
 protected void Init()
 {
     ApplyModifier();
     m_soundSystem = GetComponent<SoundSystemScript>();
 }
Пример #5
0
    ///
    /// Monobehavior Methods
    ///
    void Awake()
    {
        m_accelerate = false;
        m_turnDirection = 0;
        m_accelPercent = 1.0f;

        m_rigidbody = GetComponent<Rigidbody2D>();
        m_rigidbody.centerOfMass = Vector2.zero;
        m_soundSystem = GetComponent<SoundSystemScript>();
    }