private void OnEnable() { if (m_onReturnTile != null) { m_onReturnTile.Register(HandleGetTile); } }
private void OnEnable() { m_isMoving = false; m_isSelected = false; m_nbT2MoveVertical = 0; m_nbT2MoveHorizontal = 0; m_speed = 5f; if (m_onMoveUnit != null) { m_onMoveUnit.Register(HandleMovement); } if (m_onReturnTile != null) { m_onReturnTile.Register(HandleGetTile); } }