Пример #1
0
 // Use this for initialization
 void Start()
 {
     m_body     = GetComponent <Rigidbody2D>();
     m_animator = GetComponent <Animator>();
     if (m_detector != null)
     {
         m_detector.attackCallback(this);
     }
     state        = State.IDLE;
     m_checkDelay = checkDelay;
     m_health     = health;
 }