Ejemplo n.º 1
0
 ///<summary>
 ///Use this for initialization.
 ///</summary>
 void Start()
 {
     m_move = GetComponent <IMotorMoving>();
     m_jump = GetComponent <IMotorJumping>();
     m_time = Time.time;
     m_sign = (Random.Range(0, 2) % 2 == 0) ? 1f : -1f;
 }
Ejemplo n.º 2
0
 ///<summary>
 ///Use this for initialization.
 ///</summary>
 void Awake()
 {
     m_moving  = GetComponent <IMotorMoving>();
     m_jumping = GetComponent <IMotorJumping>();
 }